php - Zend_Navigation & Zend Router -


i looking solution of problem of combining zend_navigation within multilanguagal page-setup routers. wrote several routers (eg '/:lang/:controller/:action'), work fine. @ same time use navigation.xml has definitions <user> <label>users</label> <uri>mdm/users</uri> </user> have add dynamically default language navigation. how can this?

thanks lot, anatoliy

why don't set default language in route?

$router->addroute('default', new zend_controller_router_route(     ':lang/:controller/:action',     array(         'lang'       => 'en',         'module'     => 'default'         'controller' => 'index',         'action'     => 'index'     ) )); 

notice i've replaced "default" route routing scheme match default :module/:controller/:action


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -