在/Application/Common/Common创建function.php,然后添加以下代码:
在保存配置时:
// 写入配置文件public function setConfig(){ $file = CONF_PATH.'/setConfig.php'; if(writeArr($_POST,$file)){ $this->success('修改成功'); }else{ $this->error('修改失败'); }}
本文共 301 字,大约阅读时间需要 1 分钟。
在/Application/Common/Common创建function.php,然后添加以下代码:
在保存配置时:
// 写入配置文件public function setConfig(){ $file = CONF_PATH.'/setConfig.php'; if(writeArr($_POST,$file)){ $this->success('修改成功'); }else{ $this->error('修改失败'); }}
转载于:https://www.cnblogs.com/qhorse/p/5072630.html