Welcome Guest, Not a member yet? Register   Sign In
Loading objects in model, how do I do this?
#5

[eluser]rvbd[/eluser]
Ah that helps, thanks! I thought there would be some CI specific way of doing this things in version 2 and above.

I'll assume that php5 autoloading should work as well to require the other models, correct me if I'm wrong.

My aim for this thing is of course to be able to loop the model objects then save it so something like:

foreach ($tires as $tire) {
$tire->do_something_useful(params); //eg. check if tire is broken otherwise don't fix
$tire->save();
}


Messages In This Thread
Loading objects in model, how do I do this? - by El Forum - 05-14-2011, 10:53 PM
Loading objects in model, how do I do this? - by El Forum - 05-15-2011, 12:07 AM
Loading objects in model, how do I do this? - by El Forum - 05-15-2011, 02:34 AM
Loading objects in model, how do I do this? - by El Forum - 05-15-2011, 03:54 AM
Loading objects in model, how do I do this? - by El Forum - 05-15-2011, 06:59 AM
Loading objects in model, how do I do this? - by El Forum - 05-15-2011, 07:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB