Example #1
0
 public function indexAction()
 {
     $eventMapper = new EventMapper();
     $this->getLayout()->getHmenu()->add($this->getTranslator()->trans('menuEvents'), array('controller' => 'index'));
     $upcomingLimit = 5;
     $otherLimit = 5;
     $pastLimit = 5;
     $this->getView()->set('eventList', $eventMapper->getEntries());
     $this->getView()->set('eventListUpcoming', $eventMapper->getEventListUpcoming($upcomingLimit));
     $this->getView()->set('getEventListOther', $eventMapper->getEventListOther($otherLimit));
     $this->getView()->set('eventListPast', $eventMapper->getEventListPast($pastLimit));
 }