I am using paginate in cakephp 2, I have created the page in paginator,
but I have trouble when i want to show all data, because paginate make the data limit, i want the data is limitless or all datas,
this is my code paginate set conditions and limit,
$this->paginate = array(
'conditions' => $conditions,
'limit' => 20,
);
and the data when i print, start from 0 and end at 19, it means the paginate limit setting is running,
then I have created other statement which the data must be show all like the conditions,
this is the code,
$this->paginate = array(
'conditions' => $conditions,
// 'limit' => 20
);
I just make the paginate setting as conditions, I comment the limit setting, but the data also show 20,
I have tried to change the code like this,
$this->paginate = array(
'conditions' => $conditions,
'limit' => 100,
'maxLimit' => 10000
);
the data show 100,
how I can show all data without I make limit and maxLimit, or how I can show all data with conditions but not automatic limit (20 data)
because I am do not know the data total, somebody can help me ?
thanks before..
'limit' => 12345678912345678
– Klaus Mikaelson