Using cakephp to quickly develop php applications-the user and permission control cakephp framework provides a set of Acl-based access control mechanisms. By using the AuthComponent and AclComponent components, you can quickly implement permission control .? Access control table-based permission design: using cakephp to quickly develop php applications-user and permission control
The cakephp framework provides an Acl-based access control mechanism. By using AuthComponent and AclComponent components, you can quickly implement permission control.
?
Access control table-based permission design
From the ER diagram above, we can see that the business object of the aro object is role (role, and group is the same concept ). In the database data, the service objects of aco are not associated. Therefore, the Business Objects are directly stored in the acos table. these business objects are controller and action.
?
1. use cake schema to quickly create an Acl data table
?? Add the php execution file directory to the Path environment variable
?? Enter the cake/console directory for execution
?
Cake schema create DbAcl-app.../app
??? After the execution is successful, the database will increase
??? Acos: Access control Object table? Aros: Access request Object table? Aros_acos: request join table