CodeIgniter Forums
CI 1.7 - session with database requires active record - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: CI 1.7 - session with database requires active record (/thread-15125.html)



CI 1.7 - session with database requires active record - El Forum - 01-27-2009

[eluser]nunomira[/eluser]
I haven't seen this mentioned... so if anyone comes across this problem...

I'm using a database along with the Session Class and I had active record turned off in the database.php file.

I was getting this error:
Quote:Call to undefined method CI_DB_mysql_driver

It turns out that you need active record enabled:
Code:
$active_record = TRUE;