- 日志
- 好友
- 卖家信用
- 买家信用
- 注册时间
- 2008-11-17
- 在线时间
- 小时
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册账号
x
本帖最后由 hina1115 于 2013-12-6 11:06 编辑
- public static function rewriteConfig($key, $value) {
- $path = app_path() . '/storage/Config.php';
- $contents = file_get_contents($path);
- $contents = str_replace(self::loadConfig($key), $value, $contents);
- file_put_contents($path, $contents);
- }
- public static function loadConfig($key) {
- $Config = require(app_path() . '/storage/Config.php');
- return $Congig[$key];
- }
复制代码
|
评分
-
查看全部评分
|