Welcome Guest, Not a member yet? Register   Sign In
another routing issue
#1

[eluser]stoefln[/eluser]
hello guys!

my routing problem:

i want to have this kind of urls

mydomain.com/users/stoefln/upload

which perfectly works by switching the second and the third segment:
$route['users/(:any)/(:any)'] = "users/$2/$1";

but i want to be able to provide arguments to my upload method too, but if i add another line

$route['users/(:any)/(:any)/(:any)'] = "users/$2/$1/$3";

it doesnt work anymore Sad

any ideas?
#2

[eluser]stoefln[/eluser]
i just figured it out myself:
$route['users/([a-z]+)/([a-z]+)/([a-z,/]+)'] = "users/$2/$1/$3";

ci is simply awesome simple!




Theme © iAndrew 2016 - Forum software by © MyBB