Welcome Guest, Not a member yet? Register   Sign In
Multiple database connection problem
#5

[eluser]xwero[/eluser]
That is the way CI uses the database config file. It doesn't load all the databases put you just put all the information you need in the config/database.php file and load the database you want on the pages/in the models you want.

I would suggest you load the databases you want in the models so you don't have to depend on controllers to open the right database connection and i guess it will save you some resources too.


Messages In This Thread
Multiple database connection problem - by El Forum - 10-11-2007, 07:53 AM
Multiple database connection problem - by El Forum - 10-11-2007, 11:48 AM
Multiple database connection problem - by El Forum - 10-12-2007, 03:40 AM
Multiple database connection problem - by El Forum - 10-12-2007, 03:59 AM
Multiple database connection problem - by El Forum - 10-12-2007, 09:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB