CodeIgniter Forums
Problems with uri routing - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Problems with uri routing (/showthread.php?tid=5625)

Pages: 1 2


Problems with uri routing - El Forum - 01-29-2008

[eluser]wiredesignz[/eluser]
CI 1.6.0 , the version I have is about 2 weeks old

Code:
// 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].


Problems with uri routing - El Forum - 01-30-2008

[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.


Problems with uri routing - El Forum - 01-30-2008

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

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



Problems with uri routing - El Forum - 01-30-2008

[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.


Problems with uri routing - El Forum - 01-30-2008

[eluser]wiredesignz[/eluser]
Thanks Derek, the route works now.