Use
$this->load->database();Instead of
$this->load->library('database');
The reason why cause this error ?
We need to import "database class" but not "database library",
so use "$this->load->database();" but not "$this->load->library('database');"
Referance:
http://stackoverflow.com/questions/18045342/codeigniter-loading-database-error
No comments :
Post a Comment