Exemplo n.º 1
0
 public function suppressionAction()
 {
     $auth = Zend_Auth::getInstance();
     if (!$auth->hasIdentity()) {
         $this->_redirect('/login/index');
     }
     $table = new Default_Model_Messages();
     if ($id = $this->getRequest()->getParam('id')) {
         $table->supprimer($id);
         $this->_redirect("/livreor/suppression");
     }
     $this->view->messages = $table->getMessages();
 }