Doing the same things for all controllers
Hi,
For every view I use, I wish to set some vars (e.g. the base URL). Is there a way I could do this, without modifying the Zend_Controller_Action class? Yes, you could use the init() method of the Zend_Controller_Action class, but then you would have to add this code to every controller in your web app...
Does anybody know a workaround for this problem?
Thanks in advance!
Kind regards,
Sweepee
|