CodeIgniter Forums
CI_DB_mysql_driver - 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: CI_DB_mysql_driver (/showthread.php?tid=5066)



CI_DB_mysql_driver - El Forum - 01-03-2008

[eluser]somewhatjaded[/eluser]
I am trying to use sessions with a session database (having configured everything according to the users guide, and created the table, and can connect & run other queries on the database).

I am getting this error when I set
Code:
$config['sess_use_database']    = TRUE;

Quote:Fatal error: Call to undefined method CI_DB_mysql_driver::where() in C:\wamp\www\vendorcheck\system\libraries\Session.php on line 219

Does anyone have any ideas why?


CI_DB_mysql_driver - El Forum - 01-03-2008

[eluser]Seppo[/eluser]
Do you have Active Record enabled?


CI_DB_mysql_driver - El Forum - 01-04-2008

[eluser]somewhatjaded[/eluser]
Nope, that was the problem!

Thanks Seppo.

for anyone else,

in the database.php file,
Code:
$db['default']['active_r'] = TRUE;