Welcome Guest, Not a member yet? Register   Sign In
Populating an array of objects using CI's load->model() functionality
#9

[eluser]tunesmith[/eluser]
If you instantiate objects from a library, but the library calls the model's db routines, then doesn't the library have to have a CI instance as an instance var? So wouldn't instantiating multiple library objects be just as inefficient as instantiated multiple model objects?

I suppose it's possible to have it both ways by doing get_instance not in the constructor, but in every function that needs it...


Messages In This Thread
Populating an array of objects using CI's load->model() functionality - by El Forum - 08-02-2010, 09:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB