Hi,

I'm trying to add "language route" support. I'm using the code down below :

$router = new Zend_Controller_Router_Rewrite();
$languageRoute = new Zend_Controller_Router_Route(':language', array('language' => 'fr'), array('language' => 'fr|en')); $defaultRoute = new Zend_Controller_Router_Route(':module/:controller/:action/*',
   array( 'module'     => 'default',
          'controller' => 'index',
          'action'     => 'index')
);
$router->addRoute('default', $languageRoute->chain($defaultRoute));

But if there is no params or only the language code in the url, routing doesn't work !

on routeShutdown I have

/ => All Request object  param's are set to null
/fr => All Request object  param's are set to null

But with a module name every thing works ok.
/fr/a-module-name => fr/a-module-name/index/index

Does any body have some advice to give me to sort this out ?

Thanks,

Laurent

Reply via email to