I18n subdomains and url-rules

Comparing #1 with #7

Tags

i18n, URL

Content

[...]
<?php
...

'components' => array(
'i18n' => array(
    'class' => 'I18n',
 
'urlRulesPath' => dirname(__FILE__) . '/i18n/urlRules',
'supportedLanguages' => array(
array('code' => 'en', 'name' => 'english', 'fallback' => true),
[...]
* The application language will be set to the just figured out active language.

* The custom url rules will be included and passed to the urlManager component. The urlManager will be re-initialized to apply the cu
stom rules.

* If a redirect-url was previously set, a redirect to that url will be executed.
[...]
It's in the end up to you what you need, but I hope this example solution could give you a clue of how this can be done.

Feel free to share your thoughts and remarks - thank you.

 
 
### Links
 
 
[Russian version](http://dbhelp.ru/i18n-subdomains-and-url-rules/page/)