• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.