class View { public static function render(string $layout, string $view, array $data = []) { extract($data); ob_start(); require __DIR__ . '/../views/' . $view . '.php'; $content = ob_get_clean(); require __DIR__ . '/../views/layouts/' . $layout . '.php'; } } class Controller { protected function view(string $view, array $data = [], string $layout = 'main') { View::render($layout, $view, $data); } protected function model($model) { require_once __DIR__ . '/../models/' . $model . '.php'; return new $model(); } } class DashboardController extends Controller { public function __construct() { if (!isset($_SESSION['user'])) { header("Location: /auth/login"); exit; } } public function index() { $data = [ 'title' => 'Dashboard', 'pageTitle' => 'Dashboard' ]; $this->view('dashboard/index', $data); } } Class DashboardController not found in file.