0

该功能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

4

1 回答 1

0

您是否将index控制器和hello操作定义为默认值?然后它们不会显示在 URL 中,但会显示正确的页面。

于 2013-05-10T12:23:04.850 回答