Welcome Guest, Not a member yet? Register   Sign In
HELP - Using Routes.php to turn all paths into parameters.
#2

[eluser]Jelmer[/eluser]
You should declare a route for every url other than those for the wildcard before the wildcard rule (:any).

like this:
Code:
$route['controller_2'] = "controller_2";
$route['controller_2/(:any)'] = "controller_2/$1";
$route['controller_3'] = "controller_3";
$route['controller_3/(:any)'] = "controller_3/$1";
$route[':any'] = "controller_1/function_1";


Messages In This Thread
HELP - Using Routes.php to turn all paths into parameters. - by El Forum - 10-27-2008, 05:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB