// Takvim if ($requestPath === '/calendar') { requireLogin(); $projeler = $projectModel->getAll(); $tasks = $taskModel->getAll(); ob_start(); include __DIR__ . '/../views/calendar.php'; $content = ob_get_clean(); include __DIR__ . '/../views/layouts/layout.php'; exit; } // Kullanıcılar if ($requestPath === '/kullanicilar') { requireLogin(); $kullanicilar = $userModel->getAll(); ob_start(); include __DIR__ . '/../views/kullanicilar/index.php'; $content = ob_get_clean(); include __DIR__ . '/../views/layouts/layout.php'; exit; } if ($requestPath === '/kullanicilar/create') { requireLogin(); if ($requestMethod === 'POST') { $userModel->create($_POST); header('Location: /kullanicilar'); exit; } ob_start(); include __DIR__ . '/../views/kullanicilar/create.php'; $content = ob_get_clean(); include __DIR__ . '/../views/layouts/layout.php'; exit; }