Fix Router and finish base view system.
This commit is contained in:
7
views/base.php
Normal file
7
views/base.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php use App\Infrastructure\View as V; ?>
|
||||
|
||||
<?php V::partial( 'header' ); ?>
|
||||
|
||||
<?php V::inject( 'content'); ?>
|
||||
|
||||
<?php V::partial( 'footer' ); ?>
|
||||
1
views/home.php
Normal file
1
views/home.php
Normal file
@@ -0,0 +1 @@
|
||||
<h1>Coucou</h1>
|
||||
4
views/partials/footer.php
Normal file
4
views/partials/footer.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?php use App\Infrastructure\View as V; ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
9
views/partials/header.php
Normal file
9
views/partials/header.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php use App\Infrastructure\View as V; ?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo V::getHeadTitle(); ?></title>
|
||||
<meta charset="UTF-8" />
|
||||
</head>
|
||||
<body>
|
||||
Reference in New Issue
Block a user