Welcome Guest, Not a member yet? Register   Sign In
How to make example.com/en/contact and example.com/de/kontakt at the same time with one controller?
#1

[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.
#2

[eluser]toopay[/eluser]
For that case, you can do that by setting up one route rule...
Code:
$route['(en|de)/(contact|kontakt)'] = "contact/$1";
#3

[eluser]term25[/eluser]
thanks a lot Wink




Theme © iAndrew 2016 - Forum software by © MyBB