-- Distrust <[email protected]> wrote
(on Wednesday, 19 September 2012, 04:04 AM -0700):
> Matus Zeman wrote
> > Why can't you simply implement it inside of  showSettingsAction() method?
> 
> Because I need a universal method to initialize various elements (before
> action), without duplicating my code in every other controller action.
> Settings were just an example.

I've covered a variety of options here a few weeks ago:

    http://mwop.net/blog/2012-07-30-the-new-init.html


-- 
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

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to