ligerui

时间:2024-10-22 17:35:03编辑:阿星

如何搭建ligerui和thinkphp

*/class CommonAction extends Action{ /** * 初始化方法 * @access public * @return void */ public function _initialize(){ //引入RBAC类 import('ORG.Util.RBAC'); if(empty($_SESSION[C('USER_AUTH_KEY')])){ $this->redirect("Public/login"); } $notauth=in_array(MODULE_NAME, explode(",", C("NOT_AUTH_MODULE"))) || in_array(ACTION_NAME, explode(",", C("NOT_AUTH_ACTION"))); if(C("USER_AUTH_ON")&&!$notauth){ RBAC::AccessDecision()||$this->error("没有权限"); } }}


如何整合ligerui和thinkphp框架

*/class CommonAction extends Action{ /** * 初始化方法 * @access public * @return void */ public function _initialize(){ //引入RBAC类 import('ORG.Util.RBAC'); if(empty($_SESSION[C('USER_AUTH_KEY')])){ $this->redirect("Public/login"); } $notauth=in_array(MODULE_NAME, explode(",", C("NOT_AUTH_MODULE"))) || in_array(ACTION_NAME, explode(",", C("NOT_AUTH_ACTION"))); if(C("USER_AUTH_ON")&&!$notauth){ RBAC::AccessDecision()||$this->error("没有权限"); } }}


上一篇:好教育

下一篇:没有了