Welcome Guest, Not a member yet? Register   Sign In
Dynamic routing...
#2

[eluser]toopay[/eluser]
Of course, it would be terrible. if you expecting to have a uri such 'www.mysite.com/williamhrs', apparently you have to define all the names of your controller, even its function, into a verryy long line routes configuration...

maybe, the best way is to adding some little prefix in your route, like

Code:
$route['u_([a-z]+)'] = "users/get/$1";


Messages In This Thread
Dynamic routing... - by El Forum - 01-27-2011, 12:40 PM
Dynamic routing... - by El Forum - 01-27-2011, 01:10 PM
Dynamic routing... - by El Forum - 01-27-2011, 01:12 PM
Dynamic routing... - by El Forum - 01-27-2011, 01:32 PM
Dynamic routing... - by El Forum - 01-27-2011, 01:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB