Search code examples
phpcakephpaclcakephp-2.3

setting up ACL permissions from shell or code? CAKEPHP


I'm new to cake and I'm currently trying to implement the Simple Acl Controlled Application Tutorial from CakePHP.

I have reached the setting permissions part, but I'm not sure how I am meant to implement the permissions, I have three groups (Admin, Responder and Volunteer).

I noticed on video's and other tutorials that people are using a controller to implement the Access Control Lists, but I think that is only meant to be for cake 1.3.

If you could help me know how I am supposed to implement the ACL (shell or controller) and show me some example's then that would be great.

Thanks


Solution

  • The ACL shell would allow you to handle everything ACL related, although it requires some familiarization with ACL in general before you get the hang of it. Personally, I prefer to embed my ACL administration inside my applications by using an ACL plugin. That way everything can be handled web-based from within the app itself by people in the Administrators ARO (or more if you'd like).

    I have been using the Alaxos ACL Plugin in some of my projects and it works like a charm. All the documentation on how to set it up is on the site as well.