Ejemplo n.º 1
0
 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()));
 }
Ejemplo n.º 2
0
 public function delAction()
 {
     if ($this->getRequest()->isSecure()) {
         $awardsMapper = new AwardsMapper();
         $awardsMapper->delete($this->getRequest()->getParam('id'));
         $this->addMessage('deleteSuccess');
     }
     $this->redirect(array('action' => 'index'));
 }