Welcome Guest, Not a member yet? Register   Sign In
Problems with Routes
#6

[eluser]Aken[/eluser]
You also need to add parentheses around ":any" if you want to load that part of the string into your function.

Code:
$route['used_cars/view'] = 'used_cars/view';
$route['used_cars/(:any)'] = "used_cars/show_listings/$1";


Messages In This Thread
Problems with Routes - by El Forum - 04-06-2009, 04:39 PM
Problems with Routes - by El Forum - 04-06-2009, 05:16 PM
Problems with Routes - by El Forum - 04-07-2009, 01:36 PM
Problems with Routes - by El Forum - 04-07-2009, 02:11 PM
Problems with Routes - by El Forum - 04-07-2009, 03:10 PM
Problems with Routes - by El Forum - 04-09-2009, 12:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB