Welcome Guest, Not a member yet? Register   Sign In
[OTHER THREAD] Profiler class only returns queries when using $this->db?
#1

[eluser]Jeroen Brussich[/eluser]
I'm writing an application that needs information from two separate databases: bibliotheek and dokeos.

I succeed in pulling the right information from every database, but when I visit a page that uses three queries, the profiler-class returns:
Quote:QUERIES: Database driver is not currently loaded.

I think this problem is related to the fact I don't use $this->db but $this->XX
Code:
$this->bib    = $this->load->database('bibliotheek', TRUE);
$this->dokeos = $this->load->database('dokeos', TRUE);

//and later on

$query    = $this->bib->get($this->table);
$query    = $this->dokeos->get($this->table);

As of CI 1.7.0 the profiler class has been updated to support multiple database connections, but I can't seem to get that working.

What am I doing wrong?
#2

[eluser]Jeroen Brussich[/eluser]
Looks like this problem is already been discussed in another thread: http://ellislab.com/forums/viewthread/49049/




Theme © iAndrew 2016 - Forum software by © MyBB