【发布时间】:2013-05-10 20:23:04
【问题描述】:
函数return $ this-> redirect() ->toRoute('home'); 重定向到我的主页。
函数return $ this-> redirect() ->toRoute('home', array('controller' => 'index', 'action' => 'hello')); 必须重定向到 HomePage/index/hello 但重定向只是 HomePage。
'type' => 'segment',
'options' => array(
'route' => '[/:controller][/:action][/:id]'
我的错误是什么?
Tks
【问题讨论】:
-
更像
IndexController#helloAction()。 -
能否请您发布其余的路线配置,以便我们了解一些背景信息,atm 不清楚您发布的 sn-p 到底适合哪里。
标签: php zend-framework zend-framework2