When setting up the database settings of a project I know that there is the default active group "expressionengine" found in the database.php file and you can add more than one group, I was just wondering if there is a way that I could load at most 2 database connections at the same time.
-
What are you trying to accomplish? In what ways would the second database connection be used? Would you expect ExpressionEngine to use the second connection for something, or would you use it in a custom add-on?– BryanCommented Mar 24, 2015 at 13:35
-
Yes, it would be used for a custom add-on for my site. It would be just for reading the data from the other database.– sumpretoCommented Mar 25, 2015 at 5:07
Add a comment
|
1 Answer
Sorry it took too long, if anyone wanted to do this and have multiple connections just follow these steps like I did: http://tutsnare.com/connecting-multiple-database-in-codeigniter/. hope it helps