Exemple #1
0
 public function delAction()
 {
     if ($this->getRequest()->isSecure()) {
         $id = (int) $this->getRequest()->getParam('id');
         $warMapper = new WarMapper();
         $warMapper->delete($id);
         $this->addMessage('deleteSuccess');
     }
     $this->redirect(array('action' => 'index'));
 }