title: how to configure pagination codeigniter?
body: <p>Ive trying to make a pagination with CodeIgniter, it should be so simple according the manual of Codeigniter, even in the example is like this </p>
  
  <p>« First &lt; 1 2 3 4 5 > Last »</p>
  
  <pre><code>$config['total_rows'] = $this-&gt;searchdesc_model-&gt;queryallrows();
  $config['per_page'] = '10';
  $config['uri_segment'] =4;
  $config['full_tag_open'] = '&lt;p&gt;';
  $config['full_tag_close'] = '&lt;/p&gt;';
  $config['cur_tag_open'] = '&lt;b&gt;';
  $config['cur_tag_close'] = '&lt;/b&gt;';
  $config['first_link'] = 'First';
  $config['last_link'] = 'Last';
  $config['last_tag_open'] = '&lt;p&gt;';
  $config['last_tag_close'] = '&lt;/p&gt;'
  
  $this-&gt;load-&gt;library('Company_Creation');
  </code></pre>
  
  <p>in the view I only call it like this pagination->create_links(); ?> (or I send it through the view when I call it from the controller, still I only get this</p>
  
  <p>1 2 3 ></p>
  
  <p>and there is no way to make it look like the exmaple, may sound so dummy but , anyone could help me with this? or have a problem similar?</p>
  
  <p>Thanks</p>
  
  <p>EDIT 1</p>
  
  <pre><code>$config['total_rows'] = $this-&gt;searchdesc_model-&gt;queryallrows();
  $config['per_page'] = '5';
  $config['uri_segment'] =4;
  $config['full_tag_open'] = '&lt;p&gt;';
  $config['full_tag_close'] = '&lt;/p&gt;';
  $config['cur_tag_open'] = '&lt;b&gt;';
  $config['cur_tag_close'] = '&lt;/b&gt;';
  $config['first_link'] = ' First';
  $config['last_link'] = ' Last';
  $config['last_tag_open'] = '&lt;p&gt;';
  $config['last_tag_close'] = '&lt;/p&gt;';
  $config['next_link'] = '';
  $config['next_tag_open'] = '&lt;p id="nextbutton" style="padding-left:5px;"&gt;';
  $config['next_tag_close'] = '&lt;/p&gt;';
  $config['prev_link'] = '';
  $config['prev_tag_open'] = '&lt;p id="prevbutton" style="padding-right:5px;"&gt;';
  $config['prev_tag_close'] = '&lt;/p&gt;';
  $config['num_links']=4;
  $data['retorno'] = $this-&gt;searchdesc_model-&gt;queryalldb($config['per_page'],$this-&gt;uri-&gt;segment(4,0));
  $config['total_rows']=1000;
  $this-&gt;pagination-&gt;initialize($config);
  </code></pre>
  
  <p>I did this according some advices Ive recieve, like you said when are many data it works good, still I'd LOVE to show first and next button all time, I set total_rows after my query (which I call with the right number of rows) , and I tried before too and the results are the same, I also need to show only 4 numbers  and I am ustying numb_links ... still doesnt work (I dont know why Ci docs say should work..) any idea?</p>
  
  <p>Thanks!</p>