Welcome Guest, Not a member yet? Register   Sign In
User profiles and routing
#2

[eluser]JamieBarton[/eluser]
Okay

What I've done is:

Code:
$route['users/(:any)/attending'] = "users/attending/$1";
$route['users/(:any)/venues'] = "users/venues/$1";
$route['users/(:any)/artists'] = "users/artists/$1";
$route['users/(:any)/friends'] = "users/friends/$1";
$route['users/(:any)/followers'] = "users/followers/$1";
$route['users/(:any)/following'] = "users/following/$1";

$route['users/(:any)'] = "users/view_profile/$1";

But, if I put in a random anyting afer the username, it'll show the default method. I don't want that to happen..

I also think instead of all those routes, it could be shortened into 1?


Thanks

J Smile


Messages In This Thread
User profiles and routing - by El Forum - 03-23-2011, 03:10 PM
User profiles and routing - by El Forum - 03-23-2011, 03:15 PM
User profiles and routing - by El Forum - 03-31-2011, 04:28 AM
User profiles and routing - by El Forum - 03-31-2011, 07:53 AM
User profiles and routing - by El Forum - 03-31-2011, 11:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB