Welcome Guest, Not a member yet? Register   Sign In
uri routing question
#2

[eluser]Michael Wales[/eluser]
Yes, it can be done with routing.

URI routing is completed from top-down, so setup the routes for all of your hard-coded stuff (user/login, user/register, etc). Then setup a route for :any and direct it to whatever controller/method you want - something like friends/view would work. Use uri->segment(1) to determine if it's someone's username and process.

BTW: Remember not to let people register with the username of your controllers - otherwise they'll never be able to see their profiles.


Messages In This Thread
uri routing question - by El Forum - 08-12-2007, 11:36 AM
uri routing question - by El Forum - 08-12-2007, 12:45 PM
uri routing question - by El Forum - 08-12-2007, 03:42 PM
uri routing question - by El Forum - 08-12-2007, 03:53 PM
uri routing question - by El Forum - 10-23-2007, 01:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB