• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HMVC database error

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.

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

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?

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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.