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
Post a Comment