我有我的死记硬背的配置:
'admin' => array(
'type' => 'Segment',
'options' => array(
'route' => '/admin[/[:controller[/:action]]]',
'constraints' => array(
'controller' => '[a-zA-Z][a-zA-Z0-9_-]*/?',
'action' => '[a-zA-Z][a-zA-Z0-9_-]*/?',
),
'defaults' => array(
'controller' => 'index',
'action' => 'index',
),
),
'may_terminate' => true,
'child_routes' => array(
'query' => array(
'type' => 'Query',
),
),
)
以及为什么我试图去 admin/controller/some_action?id=234234234,我有一个错误:
A 404 error occurred
Page not found.
The requested URL could not be matched by routing.
我的配置有什么问题?