Hi all,
I'm using ZF 1.10
In my preDispatchLoop I do a setLayout and I add some controller/action into
actionStack
Now I want to do this code into preDispatch for each controller/action:
$tlp=$request->getParam(Model_PageItems::LAYOUTPLACEHOLDER);
if(isset($tlp)){
$viewRenderer =
Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
$viewRenderer->setResponseSegment($tlp);
}
Well. The problem:
- IF I do this code into preDispatch of a plugin, the code was executed but
nothing happens
- IF I do this code into preDispatch of an actionHelper all works fine !!!
Where I'm wrong?
--
View this message in context:
http://n4.nabble.com/preDispatch-tp1473130p1473130.html
Sent from the Zend Framework mailing list archive at Nabble.com.