public function executeIndex() { $this->tab = 'home'; $this->pages = array(array('label' => 'Home')); $this->announcements = ProjectAnnouncementPeer::getRecent(5); $this->projects = ProjectPeer::doSelect(new Criteria()); }
public function executeShow() { $this->tab = 'projects'; $this->project = ProjectPeer::retrieveByTag($this->getRequestParameter('id')); $this->pages = array(array('label' => 'Home', 'url' => '@homepage'), array('label' => 'Projects', 'url' => 'project/list'), array('label' => $this->project->getName())); $this->announcements = ProjectAnnouncementPeer::getRecent(5, $this->getRequestParameter('id')); $this->forward404Unless($this->project); }