Initial Release v1.0.0: Full feature set with Docker automation, Nginx/Alpine stack

This commit is contained in:
dyzulk
2026-01-16 11:21:32 +07:00
commit 45623973a8
139 changed files with 24302 additions and 0 deletions

20
app/Core/Controller.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
namespace App\Core;
class Controller {
public function view($view, $data = []) {
extract($data);
$viewPath = ROOT . '/app/Views/' . $view . '.php';
if (file_exists($viewPath)) {
require_once $viewPath;
} else {
echo "View not found: $view";
}
}
public function redirect($url) {
header("Location: " . $url);
exit();
}
}