title: how to integrate whole html template in codeigniter?
body: <p>I also done a single webpage into the codeigniter.</p>
  
  <p>But performing "href" it doesn't works.</p>
  
  <p>Give a solution for how to include whole site into the codeigniter.</p>
  
  <p>I think may be i need to create controller(into the directory) files for each and every view(into the directory) files.</p>
  
  <p>Note : My whole templates are in the "view/pages" folder.</p>
  
  <p>i already created "pages.php" in controller folder.</p>
  
  <p>After changing route.php it only works on index.php. not for all other pages when perform links from index page.</p>
  
  <p>My <strong>pages.php</strong> code is below</p>
  
  <pre><code>&lt;?php 
  if (!defined('BASEPATH')) exit('No direct script access allowed');
  class Pages extends CI_Controller
  {
      function view()
      {
          $this-&gt;load-&gt;view('templates/header.php');
          $this-&gt;load-&gt;view('pages/index');
          //$this-&gt;load-&gt;view('pages/login');
  
          $this-&gt;load-&gt;view('templates/footer.php');
      }
  }
  ?&gt;
  </code></pre>