0
내가 POS 데이터와 검색 방법을 만들 필요가
검색 방법 :
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());
}
}
을하지만 어떻게 포스트 데이터 페이징 않는 검색 결과 의 다른 페이지에서 작동하지?
공식이 검색하는 데 사용할 수있는 5 개 매개 변수의 샘플 코드입니다 시도 할 수 있습니다. 페이지 매김을 사용하여 param을 보내는 방법은 무엇입니까? 코드 샘플 – Mostafa
으로 링크 된 질문 스레드를보고 마지막 대답을 참조하십시오. –