Skip to content

Instantly share code, notes, and snippets.

@AV4TAr
Created April 12, 2012 18:41
Show Gist options
  • Save AV4TAr/2369969 to your computer and use it in GitHub Desktop.
Save AV4TAr/2369969 to your computer and use it in GitHub Desktop.
Bootstraping Zend_Navigation
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected function _initNavigation()
{
$this->bootstrap('layout');
$layout = $this->getResource('layout');
$view = $layout->getView();
$config = new Zend_Config_Xml(APPLICATION_PATH .
'/configs/navigation.xml',
'nav');
$navigation = new Zend_Navigation($config);
$view->navigation($navigation);
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment