Getting CI Instance - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Getting CI Instance (/showthread.php?tid=46615) |
Getting CI Instance - El Forum - 11-08-2011 [eluser]Unknown[/eluser] Hi. I learned from CI self libraries that they're getting an instance of CI with Code: $this->CI =& get_instance(); So I used it too in my Libraries and now I'm using them in my plugin system. I noticed that each instantiating of CI cause to inherit the whole CI which is a usual thing But I wanted to know is it harmful to getting too much of CI instances and be effective on the system running speed. |