So far so good. mysite.com/en/register is working as expected.
The problem is the navigation.
First problem : navigation dont get child_routes as routes.
Second problem : How to tell navigation to set parameter :lang to en(for example)
My navigation example:
'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
'register' => array(
'label' => 'Register',
'route' => 'register',
I am facing the same problems:
for the first problem even when I pass the controller and action I can't get the right URL from the child routes!
Also for the second problem I don't think that setting the :lang parameter in a static way to some language like "en" will solve the problem, there must be some way to set a default parameter for all routes of the application or for a module, may be in the onBootstrap, and setting the :lang value must be dynamic, for example get it from \Locale::getDefault() or from a URL part that represent the :lang
Any help on how to solve these issues will be appreciated.