title: Yii pagination not moving to last page
body: <p>i did custom pagination using in Yii. i have 33 items. but yii pagination not working for that last 3 items.</p>
  
  <p>Sample Code:</p>
  
  <pre><code>            $total = 33;
              $pages =new CPagination($total);
              $pages-&gt;setPageSize($this-&gt;pagesize);
              $pages-&gt;setCurrentPage($page);
  
              $start = ($pages-&gt;currentPage-1)*$pages-&gt;pageSize;
              $images = array_slice($images,$start,($pages-&gt;pageSize));
  </code></pre>