composer create-project topthink/think tp5
直接在extend目录下新建Test.php
<?php
namespace XX;
class Test {
public function output() {
return "test";
}
}在application/index/index.php中直接使用$test = new \XX\Test();
return $test->output();报错 致命错误: Class 'XX\Test' not found这个有大佬知道怎么处理吗??
我看论坛很多人都有这个问题啊,是框架的问题还是什么东西??
@thinkphp @流年
最佳答案