title: Pagination do not correct display page numbers Codeigniter
body: <p>My controller function</p>
  
  <pre><code>function test($start_from = 0)
  {
      $this-&gt;load-&gt;library('pagination');
  
      $data = array();
  
      $per_page = 3;
      $total = $this-&gt;activity_model-&gt;count_by();
  
      $config['base_url'] = base_url() . 'test';
      $config['total_rows'] = $total;
      $config['per_page'] = $per_page;
      $config['uri_segment'] = 2;
      $config['num_links'] = 2;
      $config['use_page_numbers'] = TRUE;
  
      $data['follow'] = $this-&gt;activity_model-&gt;get($per_page, $start_from);
  
     $this-&gt;pagination-&gt;initialize($config); 
  
     $data['pagination'] = $this-&gt;pagination-&gt;create_links();
  
      $this-&gt;load-&gt;view('front_end/test' ,$data);
  }
  </code></pre>
  
  <p>my route : </p>
  
  <pre><code> $route['test'] = "user_activity/test";
   $route['test/(:any)'] = "user_activity/test/$1";
  </code></pre>
  
  <p>model :</p>
  
  <pre><code> function get($limit,$start_from)
   {
   $sql = "SELECT * FROM user_follow LIMIT $start_from, $limit";
  
    $query = $this-&gt;db-&gt;query($sql);
    return $query-&gt;result_array();
   }
  </code></pre>
  
  <p>Problem is that I have pagination 1,2,3,4,5.... and in every page I display 3 items. I want to do that in url it show my page numbers 1,2,3,4,5</p>
  
  <p>When I click second page url show 3
  When I click third page url show 6 and so on +3 </p>
  
  <p>is it possible, I spend hours for looking advice on internet but nothing as I understand [code]$config['use_page_numbers'] = TRUE;[/code] do what I need but in my case it still do not work. </p>
  
  <p>Maybe you can advice any library ? </p>