-- Colin Guthrie <[email protected]> wrote
(on Wednesday, 27 January 2010, 09:26 AM +0000):
> 'Twas brillig, and Hector Virgen at 25/01/10 00:02 did gyre and gimble:
> > You can also do this without a base action controller. Action helpers
> > have their own preDispatch and postDispatch hooks
> 
> Are controller plugins not more appropriate here than an action helper?
> 
> http://www.framework.zend.com/manual/en/zend.controller.plugins.html

Depends on what you're trying to do.

If the logic needs introspection into the action controller, an action
helper's preDispatch() method would be a better fit. If the logic has no
dependency on the action controller, a front controller plugin would
work better.

-- 
Matthew Weier O'Phinney
Project Lead            | [email protected]
Zend Framework          | http://framework.zend.com/
PGP key: http://framework.zend.com/zf-matthew-pgp-key.asc

Reply via email to