CI框架实现用户权限控制

//设置数据,保存能够访问的方法this private $allowMethod=array('test','index');spa //全部方法执行前,都会自动执行_remap方法,调用方法不存在$allowMethod中就执行exit() public function _remap($method,$var){if (in_array($method,$allowMethod)) {$th
相关文章
相关标签/搜索