Skip to content

Instantly share code, notes, and snippets.

@AV4TAr
Created April 12, 2012 19:01
Show Gist options
  • Save AV4TAr/2370124 to your computer and use it in GitHub Desktop.
Save AV4TAr/2370124 to your computer and use it in GitHub Desktop.
navigation setup example
<?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