title: What is best option to load multiple views using Codeigniter?
body: <p>I want to load multiple view from a function, devided pages into 3 parts</p>
  
  <pre><code>header.php
  index.php
  footer.php
  </code></pre>
  
  <p>And i am doing this :</p>
  
  <pre><code>$this-&gt;load-&gt;view('templates/header', $data);
  $this-&gt;load-&gt;view('index');
  $this-&gt;load-&gt;view('templates/footer');
  </code></pre>
  
  <p>But in this if i want to add some jquery files and of footer.php that is not possible from above code.</p>
  
  <p>I another way that i saw from many articles </p>
  
  <p>Use include function in view index page like this:</p>
  
  <pre><code>&lt;?php include('header.php'); ?&gt;
  &lt;?php include('footer.php'); ?&gt;
  </code></pre>
  
  <p>But If i add few jquery file after footer.php, it's possible in above code (include code).</p>
  
  <p>But i like this <code>load-&gt;view</code> can i use it with my requirement OR Include function is best for this ?</p>