title: how to set max limit for pagination in cakephp
body: <p>My code </p>
  
  <pre><code>  $this-&gt;paginate=array(
            'conditions' =&gt;array('OrderDetail.order_id'=&gt;$id),
              'maxLimit' =&gt; 500));
  </code></pre>
  
  <hr>
  
  <pre><code>$this-&gt;paginate=array(
            'conditions' =&gt;array('OrderDetail.order_id'=&gt;$id),
              'limit' =&gt; 500));
  </code></pre>
  
  <p>Both result giving me 100 records max thou i set limit as 500,as if i set 500 i need 500 records.!  can any body help me on this ?</p>