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

[eluser]eggshape[/eluser]
how strange...have you tried this

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

oh i should also mention that you can write your uri like $method/$language, and then in your method use segment():

Code:
public function join()
{
  $language = $this->uri->segment(1,'cs'); // and that will default to 'cs' language
}


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