一、问题
thinkphp6上传服务器后路由代码报错如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
#0 [-1]ReflectionException in InteractsWithRoute.php line 78 Class "app\Test\controller\module10\Demo1" does not exist $class = $construct->name(); if (in_array($class, $this->parsedClass)) { continue; } $this->parsedClass[] = $class; $refClass = new ReflectionClass($class); if ($refClass->isAbstract() || $refClass->isInterface() || $refClass->isTrait()) { continue; } $filename = $construct->fileNames()[0]; $prefix = $class; |
二、解决方法
找了半天,好吧,命名空间大写问题!!!