This newbie is liking the Two Step View where your plugin basically
intercepts the response body and sticks it into a sitewide template at
dispatchLoopShutdown() time.

So: if you want all your controllers to use a common Zend_View object (so
that the view vars they set will end up available to the sitewide, enclosing
template), what approach would you recommend? In the name of DRY it seems
you would might have your bootstrap put the new Zend_View() in the registry,
and

class MyAppController extends Zend_Controller_Action

{
   public function init() {

       $this->view = Zend_Registry::get('view');
   }
}

and then have your controllers extend MyAppController instead of
Zend_Controller_Action. Thoughts?

--
David Mintz
http://davidmintz.org/

"Our universe is just one of those things that happens from time to time."

Reply via email to