zend_acl: Adding extra resources dynamically and getting a param predispatch
Posted
by Timmeh
on Stack Overflow
See other posts from Stack Overflow
or by Timmeh
Published on 2010-03-25T12:31:45Z
Indexed on
2010/03/25
12:33 UTC
Read the original article
Hit count: 273
First sorry about the woffle as I'm not sure how best to describe this. Basically I am not sure how I can get param in the bootstrap before the controller is loaded, but here is the long winded version...
I have got an acl class storing all my default resources in. All my page/post content is a database and I want the admin the ability to choose who which role the page would become available.
I know it is possible just to loop through the database table and add them all in at once, but I am concerned that this is a drain on resources. I have it working whereby my access check plugin can call a dynamic permission function, but I need to get the parameter of the current page ID and it's permission to set it before the controller is loaded.
Does that make sense or am I worry over nothing and I should just get the resources of all the pages at once?
thanks in advance for reading my garble!!
© Stack Overflow or respective owner