![]() |
[library] Loader - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: [library] Loader (/showthread.php?tid=2466) |
[library] Loader - El Forum - 08-07-2007 [eluser]Peter Goodman[/eluser] For some reason it seems that CI will include a library more than once if $this->load->library() is called for the same library. There are checks an balances in the code; however, they don't seem to be enough. This library provides a simple solution to the problem, and is something which I suggest should be implemented into CodeIgniter in the future. Take note of the <subclass_prefix> Code: <?php [library] Loader - El Forum - 08-07-2007 [eluser]sophistry[/eluser] I remember reading something about this in the 1.5.4 update: The link to the changelog on SVN It says: Quote:Fixed a bug that was allowing multiple load attempts on extended classes. Is this the issue you are talking about? [library] Loader - El Forum - 08-07-2007 [eluser]Peter Goodman[/eluser] Yes, I have encountered this issue at work and I'm not 100% sure if we're using 1.5.4 or 1.5.3. |