📈
kaka
  • Kaliphp
  • 编码规范
  • 目录结构
  • 调用关系
  • 环境配置
  • 框架安装
  • 基础用法
  • 框架路由
  • 异步请求
  • Restful
  • 权限验证
  • 配置
  • 数据库使用
  • 请求类
  • 数组操作类
  • 模型类
  • 页面渲染
  • 缓存
  • Session
  • Cookie
  • 反XSS注入
  • 事件
  • 表单验证
  • 语言包
  • 调试
  • 脚本执行
  • 定时任务
  • Socket框架
Powered by GitBook
On this page

Was this helpful?

权限验证

框架中提供了一套完整的权限验证逻辑,可对路由下所有method进行权限验证

用户需要在入口处(index.php)中添加权限验证配置,具体如下:

// APP信息
$app_config = [
    'session_start'  => true,                               // 是否启用session
    'check_purview_handle' => ['model\mod_auth', 'auth'],   // 权限检查
    'menu_file'  => 'menu.xml',                             // 获取菜单和用户权限配置
];
kali::registry( $app_config );
PreviousRestfulNext配置

Last updated 4 years ago

Was this helpful?