Ejemplo n.º 1
0
 public function deleteAction()
 {
     if ($this->getRequest()->getParam("role_id")) {
         $role = new Acl_Model_Role();
         $role->find($this->getRequest()->getParam("role_id"));
         $role->delete();
         $data = array("success" => true, "message" => $this->_("Your role has been successfully deleted"));
     } else {
         $data = array("error" => true, "message" => $this->_("An error occurred while deleting your role. please try again later"));
     }
     $this->_sendHtml($data);
 }