【发布时间】:2013-02-19 15:19:19
【问题描述】:
我明白了:
发生 404 错误
找不到页面。请求的 URL 无法通过路由匹配。
我的module.config.php 文件是:
'router' => array(
'router' => array(
'Test' => array(
'type' => 'Segment',
'options' => array(
//http://localhost/Test/Test
'route' => '/Test[/[:action]]',
'constraints' => array(
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
),
'defaults' => array(
'controller' => 'Test\Controller\Test',
'action' => 'Test'
),
),
),
),
),
请帮忙,我是 Zend Framework 2 的新手!
【问题讨论】:
标签: zend-framework2