Fix Router and finish base view system.

This commit is contained in:
2026-03-20 13:59:34 +01:00
parent c36b95a15f
commit 43eb936532
11 changed files with 267 additions and 18 deletions

7
views/base.php Normal file
View 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
View File

@@ -0,0 +1 @@
<h1>Coucou</h1>

View File

@@ -0,0 +1,4 @@
<?php use App\Infrastructure\View as V; ?>
</body>
</html>

View 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>