btw I found out 
http://framework.zend.com/manual/2.1/en/tutorials/tutorial.navigation.html
a short cut as well instead
of define child routes you can do like:
return array(
...
'navigation' => array(
    'default' => array(
        array(
            'label' => 'Home',
            'route' => 'home',
        ),
        array(
            'label' => 'Album',
            'route' => 'album',
            'pages' => array(
                array(
                    'label' => 'Add',
                    'route' => 'album',
                    'action' => 'add',
                ),
                array(
                    'label' => 'Edit',
                    'route' => 'album',
                    'action' => 'edit',
                ),
                array(
                    'label' => 'Delete',
                    'route' => 'album',
                    'action' => 'delete',
                ),
            ),
        ),
    ),
),
...
);




--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/ZF2-Help-needed-to-understand-this-navigation-behaviour-tp4659974p4659993.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to