title: pagination variable in cakePHP
body: <p>I am following the instruction in the cookbook web site of CakePHP:
  <a href="http://book.cakephp.org/view/166/Pagination-in-Views" rel="nofollow noreferrer">link text</a></p>
  
  <p>And got this error:</p>
  
  <blockquote>
    <p>Undefined variable: paginator [APP/views/post/index.ctp, line 46]</p>
  </blockquote>
  
  <p>I am not sure if $paginator is a built-in variable in cakePHP 1.26.</p>
  
  <p>In my Controller, I have this:</p>
  
  <pre><code>        $this-&gt;set('posts', $this-&gt;Site1-&gt;find('all', array('conditions'=&gt;array('Post.zero'=&gt;'0'), 'order'=&gt;array('Post.created DESC'), 'limit'=&gt;'3')));
  </code></pre>
  
  <p>And in the .ctp file, I have this:  </p>
  
  <pre><code>&lt;table&gt;
          &lt;tr&gt;&lt;td&gt;
         &lt;?php echo $paginator-&gt;numbers(); ?&gt;
  &lt;?php
      echo $paginator-&gt;prev('Previous', null, null);
      echo $paginator-&gt;next(' Next', null, null);
  ?&gt; 
  
          &lt;/td&gt;&lt;/tr&gt;       
  
         &lt;/table&gt;
  </code></pre>
  
  <p>How do I know if Site1 or Post is not the default Model in a controller?</p>