Welcome Guest, Not a member yet? Register   Sign In
custom users routes? [SOLVED]
#6

[eluser]WanWizard[/eluser]
Create a hook or a library extension that extracts the first segment from the URI, and checks if it's a valid username.

If so, store it somewhere (a config variable perhaps) where it can be retrieved by your controllers. Then strip the segment from the URI, so that routing happens on the next segments.

If not, show an error message, or redirect to a generic page.


Messages In This Thread
custom users routes? [SOLVED] - by El Forum - 10-14-2010, 07:39 AM
custom users routes? [SOLVED] - by El Forum - 10-14-2010, 05:26 PM
custom users routes? [SOLVED] - by El Forum - 10-14-2010, 10:29 PM
custom users routes? [SOLVED] - by El Forum - 10-15-2010, 07:23 AM
custom users routes? [SOLVED] - by El Forum - 10-15-2010, 10:19 AM
custom users routes? [SOLVED] - by El Forum - 10-15-2010, 10:57 AM
custom users routes? [SOLVED] - by El Forum - 10-16-2010, 12:08 PM
custom users routes? [SOLVED] - by El Forum - 10-16-2010, 12:34 PM
custom users routes? [SOLVED] - by El Forum - 08-03-2011, 05:25 PM
custom users routes? [SOLVED] - by El Forum - 08-04-2011, 09:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB