Welcome Guest, Not a member yet? Register   Sign In
Internationalization and Routing: adding the language code (en,de,fr) inside URLs
#2

[eluser]easymind[/eluser]
This seems to do the same:
Code:
$lang = "[a-zA-Z]{2}?";
$route["$lang/(:any)"] = "$1";

But it messes op the arguments passed to the functions (like your code does too on my system), so this works better:
Code:
$lang = "[a-zA-Z]{2}?";
$route["$lang/(:any)"] = "/$1";

But that one doesn't seem to work for controllers inside subfolders...


Messages In This Thread
Internationalization and Routing: adding the language code (en,de,fr) inside URLs - by El Forum - 10-31-2007, 03:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB