Quickly develop PHP applications with cakephp-user and access control
The cakephp framework provides a set of ACL-based access control mechanisms. By using the authcomponent and aclcomponent components, you can quickly implement permission control.
?
Permission design based on access control table
As you can see from the ER diagram above, the Aro object's business objects are role (roles, and group are the same concept). In the data base, the business objects of the ACO are not associated, so the business objects are stored directly in the ACOs table, which is the controller and the action.
?
1, quickly create ACL data table with cake schema
?? Add the PHP executable file directory to the PATH environment variable
?? Go to cake/console directory execution
?
Cake schema Create Dbacl-app. /.. /app
??? After successful execution, the database will increase
??? ACOs: Access control object table? AROS: Access the Request Object table? Aros_acos: Request Association Table