I have a project in which i have to connect with user specified database. I want to implement it in a proper codeigniter\'s style but i dont know how can i do that codeignit
I know that this is an old topic, but I was looking for this information and believe that other people could need too.
You don’t need to create separate database configurations if you only need to use a different database on the same connection. You can switch to a different database when you need to, like this:
$this->db->db_select($database2_name)
That solved to me.