Use cakephp to develop php applications at high speed-user and permission control

Source: Internet
Author: User
Tags acos
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.