Created
April 12, 2012 19:01
-
-
Save AV4TAr/2370124 to your computer and use it in GitHub Desktop.
navigation setup example
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 ManagementController extends Zend_Controller_Action | |
{ | |
public function init() | |
{ | |
//where are we? | |
$uri = $this->getRequest()->getPathInfo(); | |
//activate the navigation option | |
$activeNav = $this->view->navigation()->findByUri($uri); | |
//show nav | |
$activeNav->active = true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment