开发者

dynamic database

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜