-- Philip G <[email protected]> wrote
(on Thursday, 26 February 2009, 11:01 AM -0600):
> Is it possible to assign view variables within dispatchLoopShutdown()? or is 
> it
> too late by then? This doesn't seem to be working:
> 
> $view = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer')->
> view;
> $view->shutdown = "Shutdown variable";
> 
> $shutdown is always empty within the template. It's hard to tell the exact
> order of things based on the work flow chart.

The layout script is actually rendered during a postDispatch() call
(it's registered with a late priority to ensure it triggers last, and
only when no other actions need to be dispatched). So by the time you
get to dispatchLoopShutdown(), the content should already be fully
aggregated.

-- 
Matthew Weier O'Phinney
Software Architect       | [email protected]
Zend Framework           | http://framework.zend.com/

Reply via email to