示例#1
0
 public function executeIndex()
 {
     $this->tab = 'home';
     $this->pages = array(array('label' => 'Home'));
     $this->announcements = ProjectAnnouncementPeer::getRecent(5);
     $this->projects = ProjectPeer::doSelect(new Criteria());
 }
示例#2
0
 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);
 }