HMVC database error - 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: HMVC database error (/showthread.php?tid=53746) |
HMVC database error - El Forum - 08-07-2012 [eluser]jahsen[/eluser] I installed HMVC but i recently got an error: A PHP Error was encountered Severity: Notice Message: Undefined property: News::$db Filename: libraries/Session.php Line Number: 201 Fatal error: Call to a member function where() on a non-object in ...\system\libraries\Session.php on line 201 Codeigniter version is 2.1.1, and HMVC is the latest version. I folowed the instalation in bitbucket wiki and now i am trying to run a empty method from another Controller. Ex.: echo Modules::run('news/news/test_data'); Thank You. HMVC database error - El Forum - 08-07-2012 [eluser]Aken[/eluser] The Session library is attempting to use the database, and it can't find it. Debug from there. HMVC database error - El Forum - 08-07-2012 [eluser]jahsen[/eluser] When i change: $config['sess_use_database'] = FALSE; it's okay, but for some reason the session class does not have a database object. Could it be that i have multiple databases setup? HMVC database error - El Forum - 08-08-2012 [eluser]jahsen[/eluser] I found it, I shoud extend the MX_Controller class My mistake Thank You!!! |