isn't any advice about that?

2009/5/14 Elvin Şiriyev <[email protected]>

> Hi,
> with following router i can take url's like that:
> example.com/en/index/index
>
> at Bootstrap*
> protected function _initTranslate() {}*
> i can't take "*en*" with*
> Zend_Controller_Front::getInstance()->getRequest()->getParam('lang')*
> to spesify Zend_Locale;
>
> // my route
> $route = new Zend_Controller_Router_Route(':lang/:controller/:action/*',
>                           array('lang' =>
> Zend_Registry::get('Zend_Translate')->getLocale(),
>                                   'controller' => 'index',
>                                   'action' => 'index'));
>
> can anybody help about that?
> and
> can i write that route in application.ini ?
>
>
> thanks.
>
> --
> Elvin Şiriyev
> http://elvin.siriyev.net
>



-- 
Elvin Şiriyev
http://elvin.siriyev.net

Reply via email to