CodeIgniter Forums
HMVC database error - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: HMVC database error (/thread-53746.html)

HMVC database error - El Forum - 08-07-2012

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.

echo Modules::run('news/news/test_data');

Thank You.

HMVC database error - El Forum - 08-07-2012

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

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

I found it, I shoud extend the MX_Controller class Smile My mistake Smile
Thank You!!!