title: Codeigniter 3 pagination class with bootstrap 4
body: <p>Is Codeigniter 3 compatible with Bootstrap 4? or is it simply way too outdated to add any uses for bootstrap 4?</p>
  
  <p>I've been looking at tutorials online on how to integrate bootstrap to Codeigniter pagination.</p>
  
  <p>So far all i've seen is that they mostly changed the $config of the pagination class. For example:</p>
  
  <pre><code>//config for bootstrap pagination class integration
  $config['full_tag_open'] = '&lt;ul class="pagination"&gt;';
  $config['full_tag_close'] = '&lt;/ul&gt;';
  $config['first_link'] = false;
  $config['last_link'] = false;
  $config['first_tag_open'] = '&lt;li&gt;';
  $config['first_tag_close'] = '&lt;/li&gt;';
  $config['prev_link'] = '&amp;laquo';
  $config['prev_tag_open'] = '&lt;li class="prev"&gt;';
  $config['prev_tag_close'] = '&lt;/li&gt;';
  $config['next_link'] = '&amp;raquo';
  $config['next_tag_open'] = '&lt;li&gt;';
  $config['next_tag_close'] = '&lt;/li&gt;';
  $config['last_tag_open'] = '&lt;li&gt;';
  $config['last_tag_close'] = '&lt;/li&gt;';
  $config['cur_tag_open'] = '&lt;li class="active"&gt;&lt;a href="#"&gt;';
  $config['cur_tag_close'] = '&lt;/a&gt;&lt;/li&gt;';
  $config['num_tag_open'] = '&lt;li&gt;';
  $config['num_tag_close'] = '&lt;/li&gt;';
  </code></pre>
  
  <p>I wanted a clear divide in my codes. Simply, I wanted less PHP in my HTML and more HTML there.</p>
  
  <p>This is the Pagination code snippet in w3school bootstrap 4 tutorial.</p>
  
  <pre><code>&lt;ul class="pagination"&gt;
    &lt;li class="page-item"&gt;&lt;a class="page-link" href="#"&gt;Previous&lt;/a&gt;&lt;/li&gt;
    &lt;li class="page-item"&gt;&lt;a class="page-link" href="#"&gt;1&lt;/a&gt;&lt;/li&gt;
    &lt;li class="page-item"&gt;&lt;a class="page-link" href="#"&gt;2&lt;/a&gt;&lt;/li&gt;
    &lt;li class="page-item"&gt;&lt;a class="page-link" href="#"&gt;3&lt;/a&gt;&lt;/li&gt;
    &lt;li class="page-item"&gt;&lt;a class="page-link" href="#"&gt;Next&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>How do I integrate the above code to my pagination class?</p>
  
  <p>Do I have to do it the way the above tutorial did? or can I simply use a <code>foreach</code> loop in my HTML/view page to create the links depending on the records from the database?</p>