Welcome Guest, Not a member yet? Register   Sign In
How to create our profile url
#5

[eluser]toopay[/eluser]
@osci,
If you use that route, any request to the server (even it pointed to valid controller) will be re-route to 1 controller(in your ilustration, 'yourcontroller'. It's totally wrong approach!

@Jasmine,
CI routes can't provide your uri spec. But, you can achieve www.yoursite/username uri, by make 'pre_system' hooks. Create a hook class, which contain function to inspect whether requested uri is a valid username or not, then intercept SERVER data before it reach codeigniter routes!


Messages In This Thread
How to create our profile url - by El Forum - 04-09-2011, 03:48 AM
How to create our profile url - by El Forum - 04-09-2011, 05:33 AM
How to create our profile url - by El Forum - 04-09-2011, 06:14 AM
How to create our profile url - by El Forum - 04-09-2011, 03:34 PM
How to create our profile url - by El Forum - 04-10-2011, 10:23 PM
How to create our profile url - by El Forum - 04-10-2011, 11:02 PM
How to create our profile url - by El Forum - 04-11-2011, 12:46 AM
How to create our profile url - by El Forum - 04-11-2011, 01:21 AM
How to create our profile url - by El Forum - 04-11-2011, 01:37 AM
How to create our profile url - by El Forum - 04-11-2011, 01:54 AM
How to create our profile url - by El Forum - 04-11-2011, 03:24 AM
How to create our profile url - by El Forum - 04-11-2011, 03:54 AM
How to create our profile url - by El Forum - 04-11-2011, 05:14 AM
How to create our profile url - by El Forum - 04-12-2011, 02:48 AM
How to create our profile url - by El Forum - 05-04-2011, 01:24 AM
How to create our profile url - by El Forum - 07-04-2011, 09:31 AM
How to create our profile url - by El Forum - 07-08-2011, 02:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB