Welcome Guest, Not a member yet? Register   Sign In
How to accomplish this > www.mysite.com/username/controller/function/id
#11

[eluser]JoostV[/eluser]
In config/routes.php, make a custom routing for every controller other than user.
Code:
$route['home/:any'] = "home";
$route['comment/:any'] = "comment";

Then, underneath those routing statements, make a route that will send all other uri's to controller users.
Code:
$route[':any'] = "users";

As long as users cannot choose a username like 'comment' or 'home', you'll be fine Smile


Messages In This Thread
How to accomplish this > www.mysite.com/username/controller/function/id - by El Forum - 11-06-2008, 10:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB