![]() |
With CI3 when I needed to change the database name and not the connection I could use:
PHP Code: $this->db->db_select('DB_NAME'); How can I do the same thing in CI4?
$db->setDatabase($database2_name);
https://codeigniter4.github.io/userguide...etdatabase
(03-09-2022, 03:04 AM)kenjis Wrote: $db->setDatabase($database2_name); Perfect, I missed it in the documentation, thanks |
Welcome Guest, Not a member yet? Register Sign In |