My gut feeling is that this trips everybody up the first time around.  

When you follow a named route, that route becomes the default route for url
creation in the current view.  That is why, when you go to a page via a
named route, any urls created by the url()helper (such as zend_navigation
links) will change along with it.

Why this is confusing is that there is already a default route (named
default).  Why a named route should override the default route is something
for debate (I feel).

When using the url() helper, the second parameter specifies the route to
use. So to break out of the current named route, you would need to specify
the route to use.  So to get back to the default route:

url($url_array, 'default'); 

As for your xml, you can specify the route for each page.  For example:

                
                        Home
                        cms
                        index
                        index
                        default
                

Looks a little more clunky, but it does mean you can mix multiple routes
into your MVC navigation.

Hope this helps.

--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/subcontroller-path-separator-tp3446708p3451455.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