Zend Framework可以触发重定向到查询路由吗?

时间:2016-02-20 14:21:27

标签: php redirect zend-framework

是否可以在重定向之前设置一些查询?

$this->redirector->gotoRoute(
            array('slug' => $theme['slug']),
            'theme'
        );

我想重定向哪个是:

  /theme/theme-name-slug?foo=bar

我正在尝试重定向到原始网址,但问号已编码且网址不正确。我认为Zend框架和Zend框架2具有类似的重定向:

   $this->redirect()->toRoute(
            'categorie/default',
            array(
                'action' => 'category'
            ),
            array( 'query' => array(
                'foo' => 'bar'
            ))
        );

任何想法? 提前谢谢。

0 个答案:

没有答案