Created
October 10, 2012 15:23
-
-
Save messyOne/3866327 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function onModuleDispatch(\Zend\Mvc\MvcEvent $e) | |
{ | |
//Set the main menu into the layout view model | |
$serviceManager = $e->getApplication()->getServiceManager(); | |
$navbarContainer = $serviceManager->get('loo_navigation'); | |
$viewModel = $e->getViewModel(); | |
$viewModel->setVariable('navbar', $navbarContainer); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment