private function redirToAuth() { Session::set('referer', $_SERVER['REQUEST_URI']); if (!Session::get('user_id')) { if ($this->getController() === 'AdminController') { header('Location: /admin/login'); exit; } else { header('Location: /user/login'); exit; } } else { $model = new Model(); $output = $model->render('../views/status/403.php', 'status'); $this->setPage($output); } }