Skip to content

Instantly share code, notes, and snippets.

@gbili
Last active December 15, 2015 21:29
Show Gist options
  • Save gbili/5326053 to your computer and use it in GitHub Desktop.
Save gbili/5326053 to your computer and use it in GitHub Desktop.
navigation config array
<?php
return array(
'navigation' => array(
// The DefaultNavigationFactory we configured in (1) uses 'default' as the sitemap key
'default' => array(
// And finally, here is where we define our page hierarchy
'engine' => array(
'label' => 'Engine',
'route' => 'engine',
'active' => true, //http://stackoverflow.com/questions/12916064/zend-navigation-breadcrumb-doesnt-find-active-elements#answer-12933000
'pages' => array(
'dashboard' => array(
'label' => 'Dashboard',
'route' => 'engine',
),
'install' => array(
'divider' => 'above',
'header' => 'Actions',
'label' => 'Install',
//contorller
'route' => 'engine',
//action
'action' => 'install',
),
'uninstall' => array(
'label' => 'Uninstall',
//contorller
'route' => 'engine',
//action
'action' => 'uninstall',
),
),
),
),
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment