Welcome Guest, Not a member yet? Register   Sign In
What format should rows of data be in when passed from a Model back to a Controller?
#2

[eluser]dudeami0[/eluser]
The choice between and ArrayObject and Array is made in the model usually, choosing either $query->result() for an ArrayObject or $query->result_array() for an Array. Then just simply return either to your controller and it'll work like a charm.

Basic rule of thumb for what happens where is:

Controller handles incoming information and calls models and views
Model processes the input for output
View outputs the data, generally a UI


Messages In This Thread
What format should rows of data be in when passed from a Model back to a Controller? - by El Forum - 11-15-2010, 02:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB