CodeIgniter Forums
User Guide : Uri Routing - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: User Guide : Uri Routing (/showthread.php?tid=9647)



User Guide : Uri Routing - El Forum - 07-02-2008

[eluser]gtipete[/eluser]
i believe that
Quote:$route['product/:any'] = "catalog/product_lookup";

should become
Quote:$route['product/(:any)'] = "catalog/product_lookup/$1";
... this is the only way that i can make it work anyway, please correct me if im wrong though Smile


User Guide : Uri Routing - El Forum - 07-02-2008

[eluser]Pascal Kriete[/eluser]
That's what the example right underneath is for. It's there to show what can be done, some people may not need to capture the trailing segments.


User Guide : Uri Routing - El Forum - 07-02-2008

[eluser]sophistry[/eluser]
i stumbled on this same thing a few months back. here is the link to my writeup of this bug/inconsistency in the manual (or the code - take your pick).

cheers.