title: How to add Pagination numbers, next, previous with CakePHP
body: <p>I am using Cakephp 2.x to try and paginate one of my Model's index. I have successfully used the Paginator to create my table heading. My headings are able to sort Ascending and Descending without a problem. When I try to add <code>$this-&gt;Paginator-&gt;first</code>, <code>$this-&gt;Paginator-&gt;next</code>, <code>$this-&gt;Paginator-&gt;numbers</code> below the table there are no Paginator links visible. There are 6 evidences in my database right now, and I have the limit of the paginator set to 3. Here is my code:</p>
  
  <p>EvidencesController.php</p>
  
  <pre><code>&lt;?php
      class EvidencesController extends AppController{
          public $components = array('Session','Paginator');
          var $helpers = array( 'Form','Paginator' );
  
          public function index(){
              $this-&gt;Paginator-&gt;setting = array(
                  'limit' =&gt; 3,
                  'order' =&gt; array(
                      'Evidence.title' =&gt; 'asc'
                  )
              );
              $data = $this-&gt;Paginator-&gt;paginate('Evidence');
              $this-&gt;set('evidences',$data);
          }
      }   
  ?&gt;
  </code></pre>
  
  <p>index.ctp</p>
  
  <pre><code>&lt;h1&gt;Evidences&lt;/h1&gt;
  &lt;?php echo $this-&gt;Html-&gt;link('Create a new Evidence', array('controller'=&gt;'evidence','action'=&gt;'add'))?&gt;
  &lt;br&gt;
  &lt;table&gt;
      &lt;tr&gt;
          &lt;th&gt;&lt;?php echo $this-&gt;Paginator-&gt;sort('title'); ?&gt;&lt;/th&gt;
          &lt;th&gt;&lt;?php echo $this-&gt;Paginator-&gt;sort('date'); ?&gt;&lt;/th&gt;
          &lt;th&gt;&lt;?php echo $this-&gt;Paginator-&gt;sort('sourcetype'); ?&gt;&lt;/th&gt;
          &lt;th&gt;&lt;?php echo $this-&gt;Paginator-&gt;sort('user_id'); ?&gt;&lt;/th&gt;
          &lt;th&gt;&lt;?php echo $this-&gt;Paginator-&gt;sort('created'); ?&gt;&lt;/th&gt;
          &lt;?php if(AuthComponent::user('type') == 1) : ?&gt;
          &lt;th&gt;Edit&lt;/th&gt;
          &lt;th&gt;Delete&lt;/th&gt;
          &lt;?php endif; ?&gt;
          &lt;th&gt;Add&lt;/th&gt;
      &lt;/tr&gt;
      &lt;?php
          foreach($evidences as $evidence) :
      ?&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;?php echo $this-&gt;Html-&gt;link($evidence['Evidence']['title'], array('controller' =&gt; 'evidences', 'action'=&gt; 'view', $evidence['Evidence']['id'])); ?&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?php echo $evidence['Evidence']['date']; ?&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?php echo $evidence['Evidence']['sourcetype']; ?&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?php echo $evidence['User']['username']; ?&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?php echo $evidence['Evidence']['created']; ?&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;?php
          endforeach;
          //unset($project);
      ?&gt;
  &lt;/table&gt;
  &lt;?php 
      echo "&lt;div class='paging'&gt;";
      echo $this-&gt;Paginator-&gt;first("First");
      if($this-&gt;Paginator-&gt;hasPrev()){
          echo $this-&gt;Paginator-&gt;prev("Prev");
      }
      echo $this-&gt;Paginator-&gt;numbers(array('modulus' =&gt; 2));
      if($this-&gt;Paginator-&gt;hasNext()){
          echo $this-&gt;Paginator-&gt;next("Next");
      }
      echo $this-&gt;Paginator-&gt;last("Last");
      echo "&lt;/div&gt;";
  ?&gt;
  </code></pre>
  
  <p>How do I add first, last, next, last and number count with CakePHP's Paginator?</p>
  
  <p>Any help would be greatly appreciated! </p>