Ejemplo n.º 1
0
 /**
  * 删除角色
  *
  * @cp_params rid
  */
 function delRole()
 {
     $is_ajax = $this->is_ajax_request();
     $rid = $is_ajax ? (int) $_GET['rid'] : (int) $this->params['rid'];
     $ret = $this->ACL->delRole($rid);
     if ($is_ajax) {
         echo (int) $ret;
     } else {
         $this->to('acl:roleList');
     }
 }