how should i implement Zend_Acl_Resources? do i have something like:
$acl->isAllowed()
in controller actions? i somehow think there maybe a better way … but cant think of it.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can set this in preDispatch in plugin or in preDispatch of Controller base class. There you have your request and you can check sth like this:
You can also extend resourceControllerAction from resourceController to ensure the rights are always inherited. And that way you can simplify the ACL rules generation…