How to make example.com/en/contact and example.com/de/kontakt at the same time with one controller? |
[eluser]term25[/eluser]
Hi, for language stuff I am currently using internationalization i18n library and language library. I can get www.example.com/en/contact www.example.com/de/contact However, I would like to know how to make these links: www.example.com/en/contact www.example.com/de/kontakt with just one controller called contact and two views called en_contact and de_contact. Is this possible? Thanks in advance.
[eluser]toopay[/eluser]
For that case, you can do that by setting up one route rule... Code: $route['(en|de)/(contact|kontakt)'] = "contact/$1";
|
Welcome Guest, Not a member yet? Register Sign In |