At present I set a couple of variables to be used by the app\'s overall layout.phtml, using the onDispatch method of a BaseController, which all my other controllers extend:
(Necro)
When using onDispatch in a Controller, remember to return the parent with the event and all:
onDispatch
public function onDispatch(MvcEvent $e) { // Your code return parent::onDispatch($e); }
Otherwise, the logic on your Actions in that Controller will be ignored.