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

[eluser]mcr_rm[/eluser]
I think you need to do far more complex routing than that. I think you would need to overide the default index routing using remap http://ellislab.com/codeigniter/user-gui...#remapping then pass the paramter through a method created in a model or otherwise to check if a user exists then if not check for other methods that could exist (for standard page routing).

I have done something before outside of codeigniter that does this whereby we mod rewrite to index and first parse the routing against pages in the system before passing it to a data call to check for a saved custom page.

It would be far easier to create a controller one level down so site.com/u/username but to get what you want and still make a site that can show other pages than profiles you need to do some reworking of the routing. I don't think solely using any to parse a username is good enough.


Messages In This Thread
routing question - by El Forum - 01-07-2010, 01:47 PM
routing question - by El Forum - 01-07-2010, 02:51 PM
routing question - by El Forum - 01-07-2010, 03:14 PM
routing question - by El Forum - 01-07-2010, 03:20 PM
routing question - by El Forum - 01-07-2010, 03:27 PM
routing question - by El Forum - 01-07-2010, 03:27 PM
routing question - by El Forum - 01-07-2010, 03:35 PM
routing question - by El Forum - 01-07-2010, 03:38 PM
routing question - by El Forum - 01-07-2010, 03:43 PM
routing question - by El Forum - 01-07-2010, 03:44 PM
routing question - by El Forum - 01-07-2010, 03:46 PM
routing question - by El Forum - 01-07-2010, 03:48 PM
routing question - by El Forum - 01-07-2010, 03:56 PM
routing question - by El Forum - 01-07-2010, 04:04 PM
routing question - by El Forum - 01-07-2010, 04:08 PM
routing question - by El Forum - 01-07-2010, 04:10 PM
routing question - by El Forum - 01-07-2010, 04:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB