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

[eluser]SPeed_FANat1c[/eluser]
Quote:$route['users/(:any)/friends'] = "users/friends/$1";

As I understand the (:any) segment would be something like users id. And you want to execute function which finds the frieds by users id.

Why then not use such urls: domain.com/users/friends/id ? Then you will not need routing..


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