public function projectsAction() { if (!isset($this->admin_session->user)) { header("Location: /"); } $project_model = new ProjectModel(); $this->view->projects = $project_model->getAll(); }