Welcome Guest, Not a member yet? Register   Sign In
passing variable through model
#1

[eluser]vtatds[/eluser]
i'm stumped on this. couldn't find anything the documentation...
i have a view where i have a list of user profiles, each one has a userid in the url which you can click to see their full profile.

i have a controller (controller 1) that loads a model (model 1) to get a list of users then loads a view to display the list. each user is linked to a page (controller 2) that loads a model (model 2) and a detailed view of their profile. on the detailed view, i submit a form to a controller (controller 3) that loads a model (model 3) where i update their profile in the db.

how can i pass the user id from model 3 back to controller 2. controller 3 redirects to controller 2 when it's done.

this may be a stupid way of doing it. i'm open to better. but, what i'd really like to know is how to pass it back without dealing with cookies or sessions.

sorry if that's vague. any help would be greatly appreciated. my chops are dull.


Messages In This Thread
passing variable through model - by El Forum - 08-26-2010, 11:06 PM
passing variable through model - by El Forum - 08-27-2010, 06:44 AM
passing variable through model - by El Forum - 08-27-2010, 07:38 AM
passing variable through model - by El Forum - 08-27-2010, 07:43 AM
passing variable through model - by El Forum - 08-27-2010, 09:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB