Welcome Guest, Not a member yet? Register   Sign In
Attaching users id to my url structure
#4

[eluser]CroNiX[/eluser]
You didn't provide enough info to adequately answer. You should post your whole controller. Your route doesn't look good at all from what I can tell. Whatever appears as the 2nd segment in the request, after "profile" will be sent to a CONTROLLER of the same name of that 2nd segment. I don't think that's what you're intending.

If the request was http://yoursite.com/profile/account/24
Your route is saying "send "id_24" as the first parameter to the account controller", so there must be a controller named "account" for that to work. I think you have an account method in your profile controller but hard to know with only one method provided.

If what I said is true, then your route should be:
Code:
$route['profile/([a-z]+)/(\d+)'] = "profile/$1/id_$2";
And your ID will be sent as segment(3) to the account method of the profile controller, not segment(4).


Messages In This Thread
Attaching users id to my url structure - by El Forum - 02-06-2013, 11:30 AM
Attaching users id to my url structure - by El Forum - 02-06-2013, 12:34 PM
Attaching users id to my url structure - by El Forum - 02-06-2013, 03:44 PM
Attaching users id to my url structure - by El Forum - 02-06-2013, 04:00 PM
Attaching users id to my url structure - by El Forum - 02-06-2013, 04:20 PM
Attaching users id to my url structure - by El Forum - 02-06-2013, 06:15 PM
Attaching users id to my url structure - by El Forum - 02-11-2013, 03:57 PM
Attaching users id to my url structure - by El Forum - 02-12-2013, 07:15 AM
Attaching users id to my url structure - by El Forum - 02-12-2013, 01:43 PM
Attaching users id to my url structure - by El Forum - 02-12-2013, 04:06 PM
Attaching users id to my url structure - by El Forum - 02-12-2013, 05:10 PM
Attaching users id to my url structure - by El Forum - 02-12-2013, 05:31 PM
Attaching users id to my url structure - by El Forum - 02-12-2013, 07:43 PM
Attaching users id to my url structure - by El Forum - 02-12-2013, 08:20 PM
Attaching users id to my url structure - by El Forum - 02-12-2013, 10:52 PM
Attaching users id to my url structure - by El Forum - 02-13-2013, 11:21 AM
Attaching users id to my url structure - by El Forum - 02-13-2013, 02:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB