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

[eluser]rvbd[/eluser]
Hi All,

I have a design question for the more experienced of you. I'm about to build a software using codeigniter and wanting use full object oriented way of doing it. I previously used codeigniter's 1.9.x MVC framework to some extend, pretty simple just using controller as the logic and models to persist into database.

What I can't find in the forums and Google is a clear explanation of how to load objects in the models. If I have a Car model for argument sake, and it should have multiple Tire objects which I may store in an array, what's the best way of doing so?

Should I include the Tire object directly from the Car model?
I can also do cross loading with the Tire model if I create one, but it won't help with generating multiple instances of Tire.

Forgive me if this has been asked over and over again, I just need a bit of pointer with this.

Thanks in advance.


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