Welcome Guest, Not a member yet? Register   Sign In
Problems with uri routing

CI 1.6.0 , the version I have is about 2 weeks old

// Call the requested method.
// Any URI segments present (besides the class/function) will be passed to the method for convenience
call_user_func_array(array(&$CI, $method), array_slice($URI->rsegments,
     ($RTR->fetch_directory() == '') ? 2 : 3));

if you have a $route sub-directory, rsegment[3] is passed to your function instead of rsegment[2].

[eluser]Edemilson Lima[/eluser]
Hmmmm... So, do you think it is fixed in 1.6.0?

If it is, I will wait for it. The release date is near.

I'm not sure if this has been reported.
You should submit a bug indicating this route does not work:

$route['([a-z]+)/([0-9]+)'] = "$1/details/index/$2";

[eluser]Derek Jones[/eluser]
Please update to the latest SVN before reporting a bug on this, as I'm pretty sure I have resolved it.

Thanks Derek, the route works now.

Theme © iAndrew 2016 - Forum software by © MyBB