Welcome Guest, Not a member yet? Register   Sign In
How can I accomplish this? pls
#2

[eluser]xwero[/eluser]
you can add the routing rule
Code:
$route[':any'] = 'profile/$1';

But it's best to add this rule as low as possible because it will catch any url that isn't caught by the rules before it. In your controller you should also add a check to see if the the username is known or not. If it's not you have to find out if it's a typo in the user name or a typo/urlhack in any other url.


Messages In This Thread
How can I accomplish this? pls - by El Forum - 01-25-2008, 02:44 AM
How can I accomplish this? pls - by El Forum - 01-25-2008, 02:52 AM
How can I accomplish this? pls - by El Forum - 01-25-2008, 03:36 AM
How can I accomplish this? pls - by El Forum - 01-25-2008, 04:50 AM
How can I accomplish this? pls - by El Forum - 01-25-2008, 05:10 AM
How can I accomplish this? pls - by El Forum - 01-25-2008, 06:04 AM
How can I accomplish this? pls - by El Forum - 01-25-2008, 06:22 AM
How can I accomplish this? pls - by El Forum - 01-25-2008, 07:02 AM
How can I accomplish this? pls - by El Forum - 01-25-2008, 07:32 AM
How can I accomplish this? pls - by El Forum - 01-25-2008, 07:43 AM
How can I accomplish this? pls - by El Forum - 01-25-2008, 08:32 AM
How can I accomplish this? pls - by El Forum - 01-25-2008, 03:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB