全自动的 ThinkPHP 后台权限管理项目 thinkAuthorization

软件介绍

thinkAuthorization 是一个全自动的 ThinkPHP 后台权限管理项目。

1、更新权限表

使用 ThinkPHP 开发时,新增加 Controller,或者 修改 Controller 里的 Action。

Authorization -> Update() 可以扫描代码的改动,自动保存到 后台权限表中。

Authorization -> FriendlyName() 可以对权限项目进行自定义改名。

 

2、权限拦截的方法

在 进入控制器的 初始化时,通过调用 权限行为类<AuthorizationBehavior> 判断当前用户是否在 权限表中有 访问的权限。如果没有权限,则 跳转到 指定的 页面。 

已包含完整的代码演示。

3、源码修改说明:

后台权限设置 /src/Admin/Controller/AuthorizationController.class.php

权限行为类 /src/Common/Behavior/AuthorizationBehavior.class.php

权限表设置 /src/thinkAuthorization.sql

本文地址:https://codercto.com/soft/d/1696.html

The Java Language Specification, Java SE 7 Edition

The Java Language Specification, Java SE 7 Edition

James Gosling、Bill Joy、Guy L. Steele Jr.、Gilad Bracha、Alex Buckley / Addison-Wesley Professional / 2013-2-24 / USD 59.99

Written by the inventors of the technology, The Java(r) Language Specification, Java SE 7 Edition, is the definitive technical reference for the Java programming language. The book provides complete, ......一起来看看 《The Java Language Specification, Java SE 7 Edition》 这本书的介绍吧!

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

html转js在线工具
html转js在线工具

html转js在线工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具