Loading libraries in Core Controller - 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: Loading libraries in Core Controller (/showthread.php?tid=47914) |
Loading libraries in Core Controller - El Forum - 12-28-2011 [eluser]Unknown[/eluser] I am trying to extend the constructor Core Controller class. I had the cart library loaded automatically but then when I try to access the cart in the Core Controller class I kept getting an error saying Call to a member function contents() on a non-object Does anyone know why this is happened? I've copied my code below Code: class CI_Controller { |