开发者

Can I switch active_group real time in CodeIgniter?

开发者 https://www.devze.com 2023-01-07 08:48 出处:网络
I want to use a different databa开发者_StackOverflow中文版se that\'s defined in my $active_group in my database.php

I want to use a different databa开发者_StackOverflow中文版se that's defined in my $active_group in my database.php

Any ideas?


No... But you can actually Initialize the database class with defined parameter from your controller/model/library... example:

test = $this->load->database($config); } function index() { $this->test->get()... // bla bla bla. } } ?>

Hope this helps :)

0

精彩评论

暂无评论...
验证码 换一张
取 消