Route Prefix (Missing Controller)


#1

This is my application structure-
src
_Controller
__Admin
___DashboardController.php
__AppController.php
__OtherPublicController.php

And my routes.php -

Router::prefix('admin',function($routes){
 $routes->connect('/',['controller' => 'Dashboard', 'action' => 'index'],['_name' => 'admin_dashboard']);
    $routes->fallbacks(DashedRoute::class);
});

and the controller namespace -
namespace App\Controller\Admin;

But I am getting missing controller error


#2

Is you Admin folder and DashboardController.php file readable by the web server? Permissions are ok?