Welcome Guest, Not a member yet? Register   Sign In
[closed]How to get data from model to controller to view?
#5

[eluser]brucebat[/eluser]
Just out of curiosity.

So the $userdata is in an array type yes? So for functions in codeigniter like the dropdown function which can accept arrays it would be ok to pass them in?

Or would I need to do some form of preparation beforehand and then pass them to the function.

E.g.

Model: gets from a database table all rows and stores them in an array called "$options"
Controller: recieves the array and passes it to the view using the parameter $page
View: echo form_pulldown('myoptionlist', $options);



Thanks for your informative responses, I am learning alot Smile


Messages In This Thread
[closed]How to get data from model to controller to view? - by El Forum - 07-25-2011, 11:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB