/** get an individual project */ public function projectAction() { if ($this->_getParam('id', false)) { $projects = new ResearchProjects(); $this->view->projects = $projects->getProjectDetails($this->_getParam('id')); } else { throw new Exception($this->_missingParameter); } }