I have to use two databases in a controller. Even though I load the second database with second parameter TRUE to get reference without overwriting the default database it is replacing the default database. Any idea what should be done when loading the second database. Currently I am loading like below.
$testDB = $this->load->database('preview',TRUE,FALSE);