-- debussy007 <[email protected]> wrote
(on Saturday, 23 October 2010, 02:27 PM -0700):
> I'm using routeStartup and dispatchLoopShutdown to profile the execution
> time of requests.
> Unfortunately I noticed that when I do a redirect, dispatchLoopShutdown is
> not called.
> 
> Anyone knows any workaround for this ?

You need to tell the redirector action helper not to exit:

    $redirector = 
Zend_Controller_Action_HelperBroker::getStaticHelper('redirector');
    $redirector->setExit(false);

Stick that into your bootstrap or an early-executing plugin
(routeShutdown(), dispatchLoopStartup()), and you should be good to go.

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

Reply via email to