0
我需要創建搜索方法與POS數據:CakePHP的分頁後數據
搜索方法:
public function find_estate() {
if(isset($this->request->data['type'])){
$type =$this->request->data['type'] ;
}else{$type="";}
if($type!=""){
if ($type != "all"){
$where[] = "Estate.melk_type LIKE '$type'";
}
}
}
if(isset($where)){
$this->paginate =
array(
'Estate'=>
array(
'limit' => 4,
'order' => array(
'Estate.eid' => 'desc'
),
'fields' => array('eid','melk_type','status ','image'),
'conditions' => implode(" AND ",$where),
));
$this->set('estate',$this->paginate());
}
}
但在搜索結果 如何用POST數據分頁的其他頁面不能正常工作?
這是可以用來搜索的5個參數的樣本代碼。 我該如何發param與paginate?請用代碼示例 – Mostafa
查看鏈接的問題主題並查看最後一個答案。 –