Initial habit tracker project

This commit is contained in:
2026-07-10 16:18:31 +02:00
commit 23416ee382
20 changed files with 1157 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
<?php
class View
{
public static function render(string $view, array $data = []): void
{
extract($data, EXTR_SKIP);
$viewPath = __DIR__ . '/../Views/' . $view . '.php';
require __DIR__ . '/../Views/layout/header.php';
require $viewPath;
require __DIR__ . '/../Views/layout/footer.php';
}
}