1. 新建表规则表(think_auth_rule) ,用户组表(think_auth_group), 用户组明显表(think_auth_group_access)
(1)think_auth_rule,规则表,
CREATE TABLE `think_auth_rule` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`name` char(80) NOT NULL DEFAULT '', //name:规则唯一标识
`title` char(20) NOT NULL DEFAULT '', //title:规则中文名称
ThinkPHP的Auth权限控制系统详解

本文介绍了ThinkPHP框架中的Auth权限认证机制,包括新建的三个核心表:think_auth_rule(规则表)、think_auth_group(用户组表)和think_auth_group_access(用户组明细表)的结构与功能。详细讲解了如何设置规则、用户组以及权限分配,并提供了使用Auth类进行权限判断的方法示例。
最低0.47元/天 解锁文章
1868

被折叠的 条评论
为什么被折叠?



