The way I do something similar is to run code in dispatchLoopStartup like 
$viewRenderer =
Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer');
$viewRenderer->init();

$view = $viewRenderer->view;
$this->_view = $view;

// set up common variables for the view
$view->originalModule = $request->getModuleName();
$view->originalController = $request->getControllerName();
$view->originalAction = $request->getActionName();


I also set up my actionstack in dispatchLoopStartup.  In my menuAction, I
can then compare my menu items with $view->originalAction, etc. and colour
them appropriately.


Don't know if this is a good solution or not, but it is working for me.



-- 
View this message in context: 
http://www.nabble.com/Menu-in-ZF%3A-Controller-Plugin-with-postDispatch-method-tp23306086p23315051.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to