title: Cakephp LImiting Pagination Counter
body: <p>I want to limit the counter that is visible in pagination in cakephp? What should I do...? Currently its default showing as 1-9 as pages link. I tried limit but as it limits my post per page. I want to limit the counter not post per page. Please help me.</p>
  
  <p>Modified... 
  I tried modulus according to answers..</p>
  
  <p>I want my Pagination should be this way. If it is on first Page then.</p>
  
  <pre><code>1 2 3 ... Last
  </code></pre>
  
  <p>If it is on Middle of page then..</p>
  
  <pre><code>First ... 6 7 8 ... Last
  </code></pre>
  
  <p>If it it on last then.</p>
  
  <pre><code>First ... 11 12 13
  </code></pre>
  
  <p>My tried code is.</p>
  
  <pre><code>&lt;?php echo $this-&gt;Paginator-&gt;numbers(array('modulus' =&gt; '2', 'tag' =&gt; 'span','first'=&gt;'First','ellipsis'=&gt;'...', 'separator' =&gt; ' ', 'last'=&gt;'Last' )); ?&gt;
  </code></pre>