11-04-2020, 12:50 PM
Hi,
Just followed the wiki (https://github.com/bcit-ci/CodeIgniter/w...se-Drivers) and im getting this error:
On line 218 of /system/libraries/Session.php:
My extended class is just the example from the wiki:
Can anyone help?
Im using CI 2.x
Thanks
Just followed the wiki (https://github.com/bcit-ci/CodeIgniter/w...se-Drivers) and im getting this error:
Quote:Fatal error: Uncaught Error: Call to undefined method MY_DB_mysqli_driver::where() in /system/libraries/Session.php on line 218
Error: Call to undefined method MY_DB_mysqli_driver::where() in /system/libraries/Session.php on line 218
On line 218 of /system/libraries/Session.php:
PHP Code:
$this->CI->db->where('session_id', $session['session_id']);
My extended class is just the example from the wiki:
PHP Code:
<?php
class MY_DB_mysqli_driver extends CI_DB_mysqli_driver
{
public function __construct($params)
{
parent::__construct($params);
log_message('debug', 'Extended DB driver class instantiated!');
}
public function get_first($table)
{
return $this->limit(1)->get($table);
}
}
Can anyone help?
Im using CI 2.x
Thanks