Zend Framework,路由配置让我发疯

时间:2014-06-02 14:55:41

标签: zend-framework

Zend Framework报告:缺少options数组中的“route”。我真的无法弄清楚为什么!!!

以下是我的路由配置选项:

'router' => array(
    'routes' => array(
         'sbe1' => array(
            'type' => 'Zend\Mvc\Router\Http\Part',
            'route' => array(
                'type' => 'literal',
                'options' => array(
                    'route' => '/',
                )       
            ),
            'may_terminate' => false,
            'child_routes' => array(

                'everythings' => array(
                    'type' => 'Zend\Mvc\Router\Http\Literal',
                    'options' => array(
                        'route' => '/everythings',
                        'defaults' => array(
                            'controller' => 'Application\Controller\SbeController',
                            'action' => 'searching-results',
                            'category' => 'everythings'
                        )
                    ),
                    'may_terminate' => true,
                ),      
            )
        ),
    ),
),

0 个答案:

没有答案