Welcome Guest, Not a member yet? Register   Sign In
HMVC database error
#1

[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.



#2

[eluser]Aken[/eluser]
The Session library is attempting to use the database, and it can't find it. Debug from there.
#3

[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?
#4

[eluser]jahsen[/eluser]
I found it, I shoud extend the MX_Controller class Smile My mistake Smile
Thank You!!!




Theme © iAndrew 2016 - Forum software by © MyBB