...should not be called statically-ThinkPHP-萝卜网络博客
简介TP6报错:Non-static method think\Request::controller() should not be called statically 问题描述: 在TP6中使用request获取当前控制器名称时报错了: Non-static method think\Request::controller() should not be called statically 解决办法: 引入request框架文件 usethink\facade\Request;...