CakePHP分页:如何更改URL?

CakePHP分页:如何更改URL?,php,cakephp,pagination,Php,Cakephp,Pagination,当前,我的下一个和上一个链接的分页URL为: http://www.mydomain.com/searches/results/page:2?q=test 如何更改视图,使其显示以下内容: http://www.mydomain.com/search/results/?q=test&page=2 这是我当前的选项配置: $this->Paginator->options(array('url' => array('controller' => 'searche

当前,我的下一个和上一个链接的分页URL为:

http://www.mydomain.com/searches/results/page:2?q=test
如何更改视图,使其显示以下内容:

http://www.mydomain.com/search/results/?q=test&page=2
这是我当前的选项配置:

$this->Paginator->options(array('url' => array('controller' => 'searches', 'action' => 'search', '?' => $querystring)));

我正在从控制器传入$querystring数组。我最想知道的是如何将URL的/searches/results/part更改为/search

关于您使用的蛋糕版本的信息在这里是至关重要的抱歉,说得好,我使用的是CakePHP 2.1版(最新版本)