[eluser]Sanjib Kumar Jena[/eluser]
Hi All,
I have integrated two databases in my site. I can able to access multiple database as bellow.
$this->DBOne = $this->load->database('default', TRUE);
$this->DBtwo = $this->load->database('another', TRUE);
But what's my problem is i have to write the above code in almost all of model constructor.
Is there any trick or method to get all the database objects automatically in the model or controller instead of writing the above code. I mean can we autoload the databases and get the database instances which will be available through out our program.