Two Databases |
[eluser]gdboling[/eluser]
I searched a bit but didn't find anything. Maybe I used the wrong search string. Anyway, I have phpbb set up and I am writing an app to sit along side the forums for a site. I want to utilize member info from the forum memberships but I don't want to store my app data in the same database. Is there a way to manager 2 seperate db connections in code igniter? Thanks.
[eluser]gdboling[/eluser]
Ok, I looked at the docs again and I may have just figured it out. I should be able to use $active_group to specify which db I need. So in my login controller I can specify something like: $active_group='phpbb_db'; And then in controllers that deal with my own db I can set it to that?
[eluser]gdboling[/eluser]
And I just found the *real* answer: http://ellislab.com/codeigniter/user-gui...cting.html |
Welcome Guest, Not a member yet? Register Sign In |