CodeIgniter Forums

Full Version: HMVC database error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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.

El Forum

The Session library is attempting to use the database, and it can't find it. Debug from there.

El Forum

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?

El Forum

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