w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Cakephp 2.4 limit not working while using lower limit and uper limit

You need to use offset options-

   $from = 0;
    $max_results = 10;
    $this->Model->find('all',array(
          'conditions'=>$condition,
          "order"=>'Model.id DESC',
          'limit'=>"$max_results",
          'offset' => "$from"
    ));




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.