Routes 找不到名为“”的路由

Routes 找不到名为“”的路由,routes,zend-framework2,Routes,Zend Framework2,这是我的module.config.php return array( 'router' => array( 'routes' => array( 'subscription' => array( 'type' => 'Segment', 'options' => array( 'route' => '/subscription',

这是我的module.config.php

return array(
'router' => array(
    'routes' => array(
        'subscription' => array(
            'type' => 'Segment',
            'options' => array(
                'route' => '/subscription',
                'defaults' => array(
                    '__NAMESPACE__' => 'Subscription\Controller',
                    'controller' => 'Account',
                    'action' => 'subscribe',
                ),
            ),
            'may_terminate' => true,
            'child_routes' => array(
                'process' => array(
                    'type' => 'Segment',
                    'options' => array(
                        'route' => '[/:controller][/:action]',
                        'constraints' => array(
                            'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
                            'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        ),
                    ),
                ),
            ),
        ), // end subscription
    ),
), // end router
'controllers' => array(
     'invokables' => array(
         'Subscription\Controller\Account' => 'Subscription\Controller\AccountController',
     ),
),
'view_manager' => array(
    'template_path_stack' => array(
        __DIR__ . '/../view',
    ),
    'strategies' => array(
        'ViewJsonStrategy',
    ),
),
)

我的所有模块都使用了这段代码,但在这个特定模块中,这段代码不起作用,我有一个错误

找不到名称为的路由

我不明白为什么会发生这种情况,因为这个配置在我的其他模块上工作

请帮忙


谢谢大家!

你需要问一个问题!对不起,已经解决了!这是我的错!顺便问一下,谢谢你:出了什么问题。路线类型?