Add MySQL schema dump for phpMyAdmin

This commit is contained in:
Thomas
2025-10-28 14:08:03 +01:00
parent f956a735ca
commit 8e608d03ec
49 changed files with 1929 additions and 1 deletions

19
app/Core/View.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
namespace App\Core;
class View
{
public static function render(string $template, array $data = []): string
{
$path = base_path('resources/views/' . $template . '.php');
if (!file_exists($path)) {
throw new \RuntimeException('View not found: ' . $template);
}
extract($data, EXTR_SKIP);
ob_start();
include $path;
return (string) ob_get_clean();
}
}