Welcome Guest, Not a member yet? Register   Sign In
Codeigniter ignoring $this->db->close() ?
#2

[eluser]danmontgomery[/eluser]
IIRC it's because of the way CI handles loading. Even if the database is closed, the $this->database variable isn't unset, so the database isn't reloaded, even though you specify a different one. You should be able to get around it with:

Code:
$this->db = $this->load->database('absamp', TRUE);

Although, because they're separate databases I would probably separate them.

Code:
$this->_db = $this->load->database('absamp', TRUE);


Messages In This Thread
Codeigniter ignoring $this->db->close() ? - by El Forum - 04-20-2011, 05:17 AM
Codeigniter ignoring $this->db->close() ? - by El Forum - 04-20-2011, 05:33 AM
Codeigniter ignoring $this->db->close() ? - by El Forum - 04-20-2011, 05:38 AM
Codeigniter ignoring $this->db->close() ? - by El Forum - 04-20-2011, 05:41 AM



Theme © iAndrew 2016 - Forum software by © MyBB