title: view output in codeigniter
body: <p>what is the difference between this 2 approaches:</p>
  
  <pre><code>$data['content'] = $this-&gt;load-&gt;view('content', NULL, true); // the content of the page
  $this-&gt;load-&gt;view('layout', $data); //putting the content inside the layout, this include header, footer etc...
  </code></pre>
  
  <p>and</p>
  
  <pre><code>   $this-&gt;load-&gt;view('top');
     $this-&gt;load-&gt;view('content', $data);
     $this-&gt;load-&gt;view('footer');
  </code></pre>
  
  <p>// here more load views if needed, so each view loaded separated</p>
  
  <p>I don't know if this are the best approaches, but which is better to use? or if you have better ideas...</p>