开发者

dynamic database

开发者 https://www.devze.com 2023-02-02 10:13 出处:网络
In the config.php file of Codeigniter are static variables.开发者_如何学C I want to transform as a dynamic variable. I got the variable session and then want to replace into that static variable.

In the config.php file of Codeigniter are static variables.开发者_如何学C I want to transform as a dynamic variable. I got the variable session and then want to replace into that static variable. how can I do? please give any examples. Thanks.


From Codeigniter User Guide:

If you would like to dynamically set a config item or change an existing one, you can so using:

$this->config->set_item('item_name', 'item_value');

Where item_name is the $config array index you want to change, and item_value is its value.

0

精彩评论

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