title: codeigniter pagination : showing DOTS(.) before last page button
body: <pre><code>    $pagination_config['per_page'] = 10; 
      $pagination_config['total_rows'] = 100; 
      $pagination_config['anchor_class'] = 'class="page gradient"';
      $pagination_config['cur_tag_open'] = '&lt;a class="page active"&gt;';
      $pagination_config['cur_tag_close'] = '&lt;/a&gt;';
      $pagination_config['full_tag_open'] = '&lt;div class="pagination"&gt;';
      $pagination_config['full_tag_close'] = '&lt;/div&gt;';
      $pagination_config['first_link'] = 'First';
      $pagination_config['last_link'] = 'Last';
      $pagination_config['num_links'] = 5;
  </code></pre>
  
  <p>so this works pretty good 
  but as you can see i only show 5 page number in my page 
  if there's more then 5 pages , i want to show couple of dots before last page button </p>
  
  <p>like</p>
  
  <p><code>1 2 3 4 5... Lastpage</code></p>
  
  <p>RIGHT NOW IT'S LIKE</p>
  
  <p><code>1 2 3 4 5 Lastpage</code></p>
  
  <p>how can i do that ? </p>