Welcome Guest, Not a member yet? Register   Sign In
dbforge with multiple database configurations
#1

[eluser]Unknown[/eluser]
Hi all, I'm a newbie to CI and would like to know if the Database Forge class (dbforge) can be used in a multiple database environment. I have several databases configured in my application and would like to use this class across all of them. However, it seems to only use the one I have set to the $active_group in the database.php config file. I could not find a reference to it's limitations in the user guide, so I'm wanting to find out if my assumptions are true, that it can only be used by either the default db or the one set as active group. I really hope that isn't the case because this class is so easy and powerful to use, it would be a shame to limit it to only one db in an application.

Anyways, thanks ahead of time for any help on this question.
#2

[eluser]Tom Schlick[/eluser]
yes i wish that it wasnt either but it looks like it is... hopefully there is a fix in the wiki or if anyone else can help
#3

[eluser][At!][/eluser]
I'm also in need dbforge in a multi db config. setup to work.
For now, I have work around, but for future work it would be nice.
#4

[eluser]InsiteFX[/eluser]
If you look at the database utility class you will see that it extends the database dbforge class, so you should be able to extend either and modify it do what you need to.

Enjoy
InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB