Undefined property: controller::$session - 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: Undefined property: controller::$session (/showthread.php?tid=44301) |
Undefined property: controller::$session - El Forum - 08-10-2011 [eluser]8andrej8[/eluser] Hi why do I get this error: (I DO load session library) Quote:A PHP Error was encounteredthis is controller Code: class controller extends CI_Controller { Undefined property: controller::$session - El Forum - 08-11-2011 [eluser]8andrej8[/eluser] if I put session and form_validation loading into autoload, everything is OK What the HECK is going on? Undefined property: controller::$session - El Forum - 08-11-2011 [eluser]JonoB[/eluser] You haven't actually given that a controller a name of 'controller'...have you? http://ellislab.com/codeigniter/user-guide/general/reserved_names.html Undefined property: controller::$session - El Forum - 08-11-2011 [eluser]8andrej8[/eluser] thank you it seems i did. |