Created
April 12, 2012 18:41
-
-
Save AV4TAr/2369969 to your computer and use it in GitHub Desktop.
Bootstraping Zend_Navigation
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
<?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