示例#1
0
 public function deleteAction()
 {
     $this->_helper->viewRenderer->setNoRender();
     $this->_helper->getHelper('layout')->disableLayout();
     if ($this->getRequest()->isPost()) {
         $id = $this->_getParam('id', 0);
         $item = new Items_Model_DbTable_Item();
         $item->deleteItem($id);
     }
     $this->_flashMessenger->addMessage('MESSAGES_SUCCESFULLY_DELETED');
 }