'navigation' Tag

  • Zf2 Naviagation Custom Active Page

    October 31, 2015

    Zf2 Naviagation Custom Active Page Call in layout/view $nav = $this->navigation('Navigation'); $pages = $nav->getContainer()->getPages(); foreach ($pages as $page) { if ($page->getId() == 'admin') { $page->setActive(true); } }

  • Zend Framework 2 Navigation with ACL in 3 steps

    May 2, 2013

    This post is a  follow up from : zend framework 2 acl in 5 minutes Step 1 Code in config/autoload/global.php 'navigation' => array( 'default'=> array( array( 'label' => 'Home', 'route' => 'home', 'resource'=> 'home', ), array( 'label' => 'Login', 'route' => 'login', 'resource'=> 'login', ), array( 'label' => 'Register', 'route' => 'register', 'resource'=> 'register', ), […]

 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org