View Single Post
  #1 (permalink)  
Old 03-11-2008, 02:21 PM
Sweepee Sweepee is offline
Junior Member
 
Join Date: Jul 2007
Posts: 7
Default 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
Reply With Quote