Developing PHP applications at high speed with cakephp-user and permissions control

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

  • 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.