Php Zend Framework能否通过查询触发重定向到路由?

Php Zend Framework能否通过查询触发重定向到路由?,php,redirect,zend-framework,Php,Redirect,Zend Framework,是否可以在重定向之前设置一些查询 $this->redirector->gotoRoute( array('slug' => $theme['slug']), 'theme' ); 我想重新定向,即: /theme/theme-name-slug?foo=bar 我试图重定向到原始url,但问号已编码,url不正确。我认为Zend framework和Zend framework2具有类似的重定向:

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

$this->redirector->gotoRoute(
            array('slug' => $theme['slug']),
            'theme'
        );
我想重新定向,即:

  /theme/theme-name-slug?foo=bar
我试图重定向到原始url,但问号已编码,url不正确。我认为Zend framework和Zend framework2具有类似的重定向:

   $this->redirect()->toRoute(
            'categorie/default',
            array(
                'action' => 'category'
            ),
            array( 'query' => array(
                'foo' => 'bar'
            ))
        );
有什么想法吗? 提前谢谢