CodeIgniter Forums
Can't load library in constructor - 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: Can't load library in constructor (/showthread.php?tid=47530)



Can't load library in constructor - El Forum - 12-12-2011

[eluser]Unknown[/eluser]
I have a construtor function in one of my controllers that loads the cart library and the pagination library which works fine. However when I try to load a library in the constructor that isn't a codeigniter one and is one that I have written it fails. Is there any reason for this?

Thanks for any help.