/** * deleteAction for Permissions * * @return void */ public function deleteAction() { if ($this->getRequest()->isPost()) { $del = $this->getRequest()->getPost('del'); if ($del == 'Yes') { $id = $this->getRequest()->getPost('id'); $model = new User_Model_Roles(); $model->delete($id); } return $this->_helper->redirector('index'); } else { $id = $this->_getParam('id', 0); if ($id > 0) { $model = new User_Model_Roles(); $this->view->role = $model->fetchEntry($id); } } }