|
Is this a bad idea? What do you think?: msg#00003php.zend.framework.auth
To help with auth and acl I made an action helper that automatically checks permissions on preDipatch. My question is would it be bad practice to setup the acl for that controller in the init like this: public function init() { $acl = $this->_helper->getHelper('Auth')->getAcl(); $acl->add(new Zend_Acl_Resource('default')); $acl->add(new Zend_Acl_Resource('default.error'), 'default'); $acl->add(new Zend_Acl_Resource('default.index'), 'default'); $acl->allow('guest', 'default'); } This makes it simple for me to manage the acl on a per controller basis or should I stick all the acl controls in my custom acl class? |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Zend_Acl custom Assert query: 00003, Graham Anderson |
|---|---|
| Next by Date: | Re: Is this a bad idea? What do you think?: 00003, Jack Sleight |
| Previous by Thread: | Zend_Acl custom Assert queryi: 00003, Simon Mundy |
| Next by Thread: | Re: Is this a bad idea? What do you think?: 00003, Jack Sleight |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |