【发布时间】:2017-03-23 10:26:56
【问题描述】:
我是 Zend-Framework3 的新手。
并将我的 ZF2 应用程序迁移到 ZF3。
在这个子路由不工作。
这是我module.config.php的路由器
'router' => [
'routes' => [
'application' => [
'type' => Segment::class,
'options' => [
'route' => '/application',
'defaults' => [
'controller' => Controller\IndexController::class,
'action' => 'index',
],
],
'may_terminate' => true,
'child_routes' => [
'kk' => [
'type' => Literal::class,
'options' => [
'route' => 'kk',
'defaults' => [
'controller' => Controller\IndexController::class,
'action' => 'kk'
],
],
],
]
]
],
],
当我尝试调用/application/kk 操作时。它生成404 error。
我哪里错了?还是我必须手动注册所有操作?
【问题讨论】:
标签: php zend-framework routing zend-route zend-framework3