title: Pagination links are not showing in codeigniter pagination
body: <p>I use  codeigniter pagination class to paginate my records, below you can see my code</p>
  
  <pre><code>$data['success'] = "";
    $data['error'] = "";
    $data['offset'] = 0;
  
    $this-&gt;load-&gt;library('pagination');
    $per_page = 4;
    $total = $this-&gt;m_workshop-&gt;totalworkshoppay();
    $baseUrl = site_url('sitemanager/workshop/workshopayment');
    $data['query'] = $this-&gt;m_workshop-&gt;getallwpay($per_page, (int) $this-&gt;uri-&gt;segment(4));     
    $confignew['base_url'] = $baseUrl;
    $confignew['total_rows'] = $total;
    $confignew['per_page'] = $per_page;
    $confignew['uri_segment'] = '4';
    $this-&gt;pagination-&gt;initialize($confignew);
  
  
    $data['offset'] = (int) $this-&gt;uri-&gt;segment(4);
    $this-&gt;load-&gt;view('sitemanager/workshop/viewallworkshoppay',$data);
  </code></pre>
  
  <p>and i use <code>&lt;?php echo $this-&gt;pagination-&gt;create_links(); ?&gt;</code>  code in my view page to show pagination links.But the  pagination links are not showing in browser.When i print  <code>$data['query']</code> the records are limited according to  <code>$per_page</code> variabe.</p>