Welcome Guest, Not a member yet? Register   Sign In
routes problem ? (thx for reading)
#1

[eluser]starenka[/eluser]
Hi,

trying to implements easy multilang site with uris as:

/cs/user/join (or just /user/join)
/sk/user/join
etc etc..

so i added a route:

Code:
$route['(cs|sk|pl)/(.*)'] = "$2/$1";

but when i try to get the language segment in controller...

Code:
class User extends Controller
{
    
     function join($language)
     {
         var_dump($language);
     }    
}

i allways get "the method" segment...

any clues? or more elegant solutions?


Messages In This Thread
routes problem ? (thx for reading) - by El Forum - 01-09-2008, 04:18 PM
routes problem ? (thx for reading) - by El Forum - 01-09-2008, 04:25 PM
routes problem ? (thx for reading) - by El Forum - 01-09-2008, 04:47 PM
routes problem ? (thx for reading) - by El Forum - 01-09-2008, 04:55 PM
routes problem ? (thx for reading) - by El Forum - 01-09-2008, 06:00 PM
routes problem ? (thx for reading) - by El Forum - 01-09-2008, 06:26 PM
routes problem ? (thx for reading) - by El Forum - 01-09-2008, 06:44 PM
routes problem ? (thx for reading) - by El Forum - 01-10-2008, 12:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB