CakePHP url路径数据在第一次搜索时出现分页(我做错了什么?)

我有一个搜索表单。 表单值将传递给查询,并按预期显示结果。 我正在使用以分页方法构建的Cakes。 在初始搜索时,我需要url来反映搜索路径值,就像我使用sort()或Next >>分页方法一样。 当我使用sort()或Next >>时,我的url使用paginator结构格式化,如:
   // pagination to Next page note Page 2
...plans/search/55/22/1/0/33758/page:2 
当我第一次搜索时,我得到了网址:
...plans/search/
以下是我的搜索操作的相应片段:
function search( 
...
// query and other action code here unrelated to pagination 
...
// start of applicable array and pagination code
$url = array('controller' => 'plans', 'action' => 'search');
$this->paginate = $options; // $options is my query
$this->set('searchdetails', array_merge($url, $searchdetails)); //$searchdetails isi  any array of the values entered in the search input boxes. Joining my url and search details.
$this->set('plans', $this->paginate('Plan'));
我试图将上述内容分解为仅包含适用于我的问题的内容。 注意:我在我的查询中通过此操作运行默认“订单”并且其工作正常,但未反映在网址中。 我需要知道如何更新网址以反映初始搜索输入结果。我把所有传递给我视图的数组数据都很好。 我尝试用我写的一个相当大的方法重新创建路径,但它什么也没做,只会使我的问题复杂化...... 有一个简单的Cake类型解决方案吗?或者这只是目前不在Cakes卡? 请直截了当地告诉我。     
已邀请:
你有没有尝试过
echo $this->Form->create(null, array('url' => $this->passedArgs)); 
    

要回复问题请先登录注册