I am confused as to how to configure CodeIgniter to use more than one database. I have data in an Oracle database retrieved via PDO and a MySQL db which is using the "built in" configuration for CI. From what I can see, I only have the main configuration file that allows me to config one database (in this case the MySQL one)
How do I get data back from more than one database in the same webpage/view? Say I have MySQL built in to the main config page. Do I just make another connection in my controller (do I do it the "regular" old non-framework way), fetch my array and send that array to the view? In other words my main configured database can use the built in CI activerecord type queries but my other databases can't take advantage of that?
Is this pretty much the way it is with all php frameworks? YOu end up making connections in your controller, the old fashioned way, and sending data to the view?
Thanks.
EDIT: I guess I'm saying the model for the second database ends up in the controller...which is bad isn't it?
EDIT: Oracle was just an example. It could be any database CI can natively talk to.
EDIT: For CI, I think this is the answer:
http://codeigniter.com/user_guide/database/connecting.html
though I'm not sure how to use it.
EDIT: Found it here too: http://www.gotphp.com/codeigniter-multiple-database-support/5468/ better.
-- these are assuming the built in drivers for CI. this does not answer then you have multiple databases and non-CI drivers