Excuse me,
the plugin is executed, but :
$request = $this->getRequest();
$request->getModuleName();
doesn't return me "default" if I access mydomain.com

That's why one of my plugin get an error.
Though, I overrided the default router this way :

$router = $front->getRouter();
$route = new Zend_Controller_Router_Route(
        ':lang/:module/:controller/:action/*',
        array('module' => 'default')
);
$router->addRoute('default', $route);





debussy007 wrote:
> 
> Thank you both of you for your replies.
> I have opted for Michal solution.
> 
> However I encounter a problem:
> when I override default behaviour, my plugins are ignored.
> 
> If I remove the overriding, the plugins are ok. So maybe I must do
> something more in order to execute my plugins ?
> 
> Thank you for any help !!
> 
> 
> 
> Michał Minicki wrote:
>> 
>> 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
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/changing-the-url-tp14778862s16154p14784906.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to