Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. $this->paginate = array(
  2. 'conditions' => $conditions,
  3. 'limit' => 20,
  4. );
  5.  
  6. $this->paginate = array(
  7. 'conditions' => $conditions,
  8. // 'limit' => 20
  9. );
  10.  
  11. $this->paginate = array(
  12. 'conditions' => $conditions,
  13. 'limit' => 100,
  14. 'maxLimit' => 10000
  15. );
  16.  
  17. $all = $this->ModelName->find('count', array('conditions'=> $conditions));
  18.  
  19. $alldata = $this->ModelName->find('all', array('conditions'=> $conditions, 'limit' => $all));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement