Add TuxiNet branding and document templates

This commit is contained in:
Thomas
2025-10-28 13:56:54 +01:00
parent f956a735ca
commit 3755435890
48 changed files with 1762 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();
}
}