possible to assign db_name(Database.php) in a variable or any other option |
You can pass the database config group to the database method.
So you would need to setup a config group for each database that you need to use. PHP Code: $db1 = \Config\Database::connect('group_one'); Note: Change the words “group_one” and “group_two” to the specific group names you are connecting to. SEE: Multiple Connections to Same Database What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Messages In This Thread |
possible to assign db_name(Database.php) in a variable or any other option - by subodh6580 - 09-09-2019, 12:47 AM
RE: possible to assign db_name(Database.php) in a variable or any other option - by InsiteFX - 09-09-2019, 03:48 AM
RE: possible to assign db_name(Database.php) in a variable or any other option - by kilishan - 09-09-2019, 06:52 AM
|