Welcome Guest, Not a member yet? Register   Sign In
Routes: how to get mycontroller/id function same as mycontroller/action/id
#9

[eluser]heha[/eluser]
I'm facing the same problem wtih you, dreamynsx. But in Zaatar's reply has already showed the way to complete that.

Try:
$route['(cars/[a-z]+)'] = "cars/index/$1";
(Close route with bracket.)
That's it.

Anyway I still don't know why this work. Don't know very much with regular expression.


Messages In This Thread
Routes: how to get mycontroller/id function same as mycontroller/action/id - by El Forum - 10-23-2007, 02:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB