I love CakePHP, but cannot wrap my head around the ACL/Auth subject. Everything else comes together nicely, but when it comes to this, I am lost. On top of it, I cannot finish my application if this is not solved. Therefore, I desperately need your help.
Things to note:
- I have tried a few of the plugins available, but to no avail.
- I have used tutorials online as well as the latest CakePHP book by Mariano, with no success.
- I have tried on my own, also to no avail
Why is it so hard to get this accomplished?
These are my questions:
- Is there any other way to handle Access Rights in a CakePHP application with Multiple Admin, users, etc?
- For the possibility that ACL is the only/best way, how else could I approach this?
- What could I possibly be doing wrong?
As you say that you have already tried a few of the available plugins, you have maybe already tried my own one: http://www.alaxos.net/blaxos/pages/view/plugin_acl It is mainly a graphical interface that allows to set the ACL permissions when they are used to grant/deny access to actions.
My point here is that in addition to the plugin itself, I made available a very simple sample application http://www.alaxos.net/blaxos/pages/view/demo_plugins that uses this plugin. It may help you if you install it and look at the code, as the application has some public parts, and some parts protected by the ACLComponent.