Hi Rob,

Nowadays, you should override Zend_Controller_Action::init() rather than
override the constructor. Zend_Controller_Action::__construct() calls
init() as the last thing it does.

I like the way you say "nowadays" in an "well yes, that was how we used to do it back in the day, but of course, the modern way is..." kind of way ;-)

Yeah, as you'll have seen I did get to that further down that post

Alternatively, you could override Zend_Controller_Action::preDispatch()
which gets called directly before each Action function.

That sounds like both init and preDispatch now have similar roles ...what distinguishes the two?

Thanks,

Nick

--------------------------------------------
Ingredients Australia

http://www.ingredients.com.au
--------------------------------------------

Reply via email to