public function indexAction() { $this->getLayout()->getHmenu()->add($this->getTranslator()->trans('menuAwards'), array('action' => 'index')); $awardsMapper = new AwardsMapper(); $this->getView()->set('awards', $awardsMapper->getAwards()); $this->getView()->set('awardsCount', count($awardsMapper->getAwards())); }
public function delAction() { if ($this->getRequest()->isSecure()) { $awardsMapper = new AwardsMapper(); $awardsMapper->delete($this->getRequest()->getParam('id')); $this->addMessage('deleteSuccess'); } $this->redirect(array('action' => 'index')); }