title: Autoload a view on every page with codeigniter
body: <p>So I have my views split up basically between three (3) files: </p>
  
  <pre><code>-- Header file 
  $this-&gt;load-&gt;view('templates/header', $data);
  
  -- Main Body file 
  $this-&gt;load-&gt;view('login_view', $data);
  
  -- Footer file 
  $this-&gt;load-&gt;view('templates/footer', $data);
  </code></pre>
  
  <p>Now I just recently started building, but I've noticed it's really annoying to retype the header and footer on every controller to tell it to load. Is there a way to automatically load the <code>header</code> and <code>footer</code> view on every request?</p>