ThinkPHP报错
thinkphp学习笔记
我有一个魔盒
这个作者很懒,什么都没留下…
展开
-
Thinkphp5.1 variable type error: array
控制器报错:variable type error: array原因:控制器return返回了一个数组。解决:使用json()函数处理数组。例return json($array);原创 2020-09-01 10:44:53 · 216 阅读 · 0 评论 -
tp5.1 致命错误: Call to undefined method think\Cache::get()
致命错误:致命错误: Call to undefined method think\Cache::get()原因:(引用类错误)thinkphp5.1中有两个Cache类:think\Cache和think\facade\Cache。官方文档中说使用think\Cache,但实际是使用think\facade\Cache,可能是官方文档错了吧。其他致命错误: Class ‘app\index\controller\Cache’ not found(未引入Cache类)...原创 2020-05-21 20:17:27 · 5308 阅读 · 0 评论