我想在 cakephp 中传递参数,当我搜索排序结果然后单击分页的 2 页时,我该怎么做?我的控制器代码中的分页参数是
$membershipType = '';
$status = '';
$timeSpan = '';
$fieldName = 'membership_Type';
if(!empty($this->params->named["fieldName"])){
$this->request->data['associations']["fieldName"] = $this->params->named["fieldName"];
}
$fieldName = 'statuses';
if(!empty($this->params->named["fieldName"])){
$this->request->data['associations']["fieldName"] = $this->params->named["fieldName"];
}
$fieldName = 'time_Span';
if(!empty($this->params->named["fieldName"])){
$this->request->data['associations']["fieldName"] = $this->params->named["fieldName"];
}
我想在分页中传递字段名称的值,我该如何传递这些?在我看来,代码是
echo $this->PaginatorManager->options();
我真的被困在这里两天了,我不知道我现在该怎么办?请帮助我,将不胜感激,在此先感谢一吨。