莆仙生活网
当前位置: 莆仙生活网 > 知识库 >

ligerui

时间:2025-02-05 04:56:27 编辑:莆仙君

如何搭建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("没有权限"); } }}


  • 上一篇:好教育
  • 下一篇:没有了