Reputation: 1
I use latest CI version 2.2.0.
When i put the code $this->load->database();
on controller, the correspond view page will return blank. Therefore, I can't connect to the database.
p/s:
Upvotes: 0
Views: 317
Reputation: 1
I had exactly the same problem. It worked when I changed the dbdriver in "database.php" config from mysql to mysqli.
It should look like:
$db['default']['dbdriver'] = 'mysqli';
Upvotes: 0
Reputation: 1
Actually, this problem is caused by using PHP version > 5.3. I fixed that
Upvotes: 0