1
加载使用超薄框架苗条中间件自定义类是我的榜样路线,我有一个自定义类名为范畴,但我得到的错误是这样Class 'app\Category' not found
如何从一个文件夹路径
$app->get('/category',function($request, $response, $args){
$categories = new app\Category();
$categories->getCategories();
});
如何加载这个类为了使在超薄框架V3使用它
这个类是在命名空间中的应用程序 –
您可以显示整个文件或至少顶部装载加入自动加载块,在哪里你有名称空间声明? –