I'm checking out DooPHP and I can't seem to find how to use multiple database connections simultaneously. I just want to have multiple database objects and use their methods to query the DB. Now I I'm doing this:
Doo::db()->setDb($dbconfig, $config['APP_MODE']);
Doo::db()->query('.......');
and then setDb again when I want to use another DB. This is retarded though. It's very difficult to find what you're looking for in the API documentation as well.
Any help here?
The solution was to do this in index.php:
This in db.conf.php:
And use it like this in the controller: