[SOLVED!] Friendly URL and removing controller name? |
[eluser]Edemilson Lima[/eluser]
I am having a problem with a routing... At my routes.php, I placed: Code: $route['([a-z]+)/([0-9]+)'] = "$1/details/index/$2"; If I try to access something like: http://www.site.com/products/details/index/3 It works fine. But, if I do it by the route: http://www.site.com/products/3 It calls products/details/index, but does not send the id code: Code: A PHP Error was encountered "products" is a folder, "details" is the controller and "index" is its default function. Any ideas? |
Messages In This Thread |
[SOLVED!] Friendly URL and removing controller name? - by El Forum - 01-21-2008, 11:00 PM
[SOLVED!] Friendly URL and removing controller name? - by El Forum - 01-22-2008, 12:20 AM
[SOLVED!] Friendly URL and removing controller name? - by El Forum - 01-22-2008, 10:20 AM
[SOLVED!] Friendly URL and removing controller name? - by El Forum - 01-22-2008, 10:59 AM
[SOLVED!] Friendly URL and removing controller name? - by El Forum - 01-22-2008, 11:52 AM
[SOLVED!] Friendly URL and removing controller name? - by El Forum - 01-22-2008, 12:02 PM
[SOLVED!] Friendly URL and removing controller name? - by El Forum - 01-22-2008, 05:28 PM
[SOLVED!] Friendly URL and removing controller name? - by El Forum - 01-28-2008, 06:48 PM
|