/** Individual rally details */ public function rallyAction() { if ($this->_getParam('id', false)) { $rallies = $this->_rallies->getRally($this->_getParam('id')); if (count($rallies)) { $this->view->rallies = $rallies; $attending = new RallyXFlo(); $this->view->atts = $attending->getStaff($this->_getParam('id')); } else { throw new Exception('No rally exists with that id'); } } else { throw new Exception($this->parameterMissing); } }