Hi,
Like many others I enjoy the tutorials on this site, but once in a while I run into problems.
One of the problems I have now is having multiple categories for my guestbook. What it actually means is that I have multiple guestbooks and depending on what variable I find in the uri I will fetch the right messages. This works fine as long as I don't use any access control on it.
As you might have guessed: I would like to use access controls.
Now I wonder what would be the best way to do this.
I figured that I want to have the categories as resources so that I can link them in the DB to priveleges and roles.
But how to handle this the best way?
- Would I use assertions since it is controller specific
- Do I use acl helpers and see them as a layer beneath the controller (module:controller:category) which isn't valid for all controllers?
I've already got quite a bit of controlling to do in my action methods and would like to reduce this as much as possible (for example see my post at:
alex-tech-adventures.com/forum/13-zend-f...?limit=6&start=6)
How would you approach this problem?
(thinking of it something like an acl helper would actually not be such a bad idea...)