Welcome Guest, Not a member yet? Register   Sign In
Manipulating data returned by Model
#2

[eluser]bretticus[/eluser]
If your data should be uniform across controllers, then the best way is to loop your $query:

Code:
foreach ($query->result() as $row) {
//build new array or object per logic statements...
}

...and build a new array or object in the model method before returning to the controller.


Messages In This Thread
Manipulating data returned by Model - by El Forum - 08-04-2010, 10:26 AM
Manipulating data returned by Model - by El Forum - 08-04-2010, 10:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB