Welcome Guest, Not a member yet? Register   Sign In
Routing Question (:any)
#3

[eluser]Oscar Dias[/eluser]
That's a question that I have as well. I think the problem with using your solution, besides having to write all routes manually, is that you can't have a user with the username with the same value as your controllers. If you have a controller '/login', you have to prevent users creating the username 'login', otherwise no one will be able to access that user's profile. The same will happen for all your controllers.

I usually end up doing:

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

Or something like it...


Messages In This Thread
Routing Question (:any) - by El Forum - 08-13-2012, 09:04 PM
Routing Question (:any) - by El Forum - 08-13-2012, 10:12 PM
Routing Question (:any) - by El Forum - 08-16-2012, 06:39 AM
Routing Question (:any) - by El Forum - 08-16-2012, 09:46 AM
Routing Question (:any) - by El Forum - 08-16-2012, 01:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB