我有配置我的死記硬背?如何查詢路由zf2?
'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',
),
),
)
ADN爲什麼我試圖去管理/控制/ some_action ID = 234234234,我有一個錯誤:
A 404 error occurred
Page not found.
The requested URL could not be matched by routing.
有什麼不對我的配置?
我有這樣的配置,如果我有管理員\控制器其工作,但管理員\控制器\行動dosn't! – Cawa
您在哪個級別擁有'admin \ controller \ action'? – yechabbi
你是指什麼水平? – Cawa