PHP错误:Non-static method think\Request::post() should not be called statically

2022/2/1 15:00:05

本文主要是介绍PHP错误:Non-static method think\Request::post() should not be called statically,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

tp5.1 提示:Non-static method think\Request::post() should not be called statically

则是命名空间的问题,解决方法:

将引入use think\Request;的地方修改成use think\facade\Request;



这篇关于PHP错误:Non-static method think\Request::post() should not be called statically的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程