标签:
vendor\overtrue\wechat\src\Foundation\Application.php
registerBase 方法 在初始化属性时
$this[‘cache‘] = function () { // return new FilesystemCache(sys_get_temp_dir()); // win 下获取的是 c:\window 没有权限 位置太敏感 加权限什么的就算了吧 return new FilesystemCache(\Yii::$app->cache->cachePath); // 用的是YII2 直接把第三方包的缓存放到站点的缓存文件夹 };
win环境 yii2 框架 overtrue/wechat 包 由 sys_get_temp_dir 引发的 the directory "c:\Windows" is not writable
标签:
原文地址:http://www.cnblogs.com/cgjcgs/p/5732287.html