Welcome Guest, Not a member yet? Register   Sign In
CI 1.7 Output->enable_profiler(TRUE); "Database driver is not currently loaded"
#1

[eluser]Jon Parker[/eluser]
Hi guys - First post for anything like this so I apologize in advance if it's just me being stupid but I've tried a few things and still can't seem to fix things so I'm guessing it could be a bug


I have the following controller:
Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

class Home extends Controller {

    function Home() {
        parent::Controller();
        $data['this_page'] = 'home';
    }

    function index()
    {
        $data['this_page'] = 'home';
        $this->load->view('template',$data);
    }
    
    function test()
    {
        $this->load->database();
        
        $this->db->from('cats');
        $query = $this->db->get();
        
        printr($query->result());
        
        $this->output->enable_profiler(TRUE);
    }

}
(printr() is my own function not a typo)

When I run the test function, i get the list of categories as expected output to the browser with some of the profiler information, but in the database box, it just says: "Database driver is not currently loaded"

Now I'm guessing that the driver is loaded otherwise I wouldn't be able to run a query?

This is happening with the 1.7.0 download and the SVN trunk files.

I've tested with 1.5.4 and up but 1.6.2 is the last version it works with

I'm running PHP 4.4.7 and using mySQL version 5.4.45 (if this makes any difference?)

Cheers

Jon Smile


Messages In This Thread
CI 1.7 Output->enable_profiler(TRUE); "Database driver is not currently loaded" - by El Forum - 10-28-2008, 04:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB