debussy007 wrote:
Hi,
I am internationalizating my web app and I need to know for every request
which language is chosen.
So I want to add in the start of the url something like:
http://example.com/fr/myController/myAction
http://example.com/en/myController/myAction
But this will make zend think "fr" and "en" is a module.
How can I achieve this ?
Create your own route (possibly as a default) and add it to router:
$route = new Z_C_R_Route(':lang/:controller/:action');
$router->addRoute('default', $route);
Throw in some sane defaults for language, controller and action and eead the
docs if you need more details:
http://framework.zend.com/manual/en/zend.controller.router.html
--
Michał Minicki aka Martel Valgoerad | [EMAIL PROTECTED] |
http://aie.pl/martel.asc
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
"Idleness is not doing nothing. Idleness is being free to do anything." --
Floyd Dell