Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个配置文件:application/config/breadcrumbs.php
application/config/breadcrumbs.php
在文件中,我有以下配置项:
$config['hide_number'] = TRUE;
如何通过控制器更改此配置项的值。
我只需要更改一次此配置项的值。这是怎么做到的???
$this->config->load('breadcrumbs'); $this->config->set_item('hide_number', 'your value');
有关更多信息,请参阅文档:
http://codeigniter.com/user_guide/libraries/config.html