i have in module/config/module.config.php :
'router' => [
'routes' => [
'home-backend' => [
'type' => Literal::class,
'options' => [
'route' => '/backend',
'defaults' => [
'controller' => Controller\IndexController::class,
'action' => 'index',
],
],
],
'backend' => [
'type' => Segment::class,
'options' => [
'route' => '/backend[/:controller[/:action]]',
'defaults' => [
'controller' => Controller\IndexController::class,
'action' => 'index',
],
],
'may_terminate' => true,
'child_routes' => [
'wildcard' => [
'type' => 'Wildcard'
]
]
],
],
],
when i call : http://mysite/backend/index/index error : Page not found. The requested controller could not be mapped to an existing controller class.
Controller: index (resolves to invalid controller class or alias: index)
what is problem??