title: Best way to include view within view in Codeigniter template using Dwoo?
body: <p>I am using Codeigniter 1.7.2 and Phil Sturgeon's wonderful Dwoo wrapper which allows me to use the Dwoo template library in Codeigniter - <a href="http://philsturgeon.co.uk/code/codeigniter-dwoo" rel="nofollow noreferrer">http://philsturgeon.co.uk/code/codeigniter-dwoo</a></p>
  
  <p>I have a small question regarding the inclusion of other view template files within my template files. Say for example I have a dashboard.php file and I want to include a header and footer, what is the best way of doing that?</p>
  
  <p>I usually would just do this:</p>
  
  <pre><code>&lt;?php
  $this-&gt;load-&gt;view('header');
  ?&gt;
  </code></pre>
  
  <p>And this seems to work, but the whole point of using a template library is to separate code from my html. Can I use Dwoo's include functionality and if so, how?</p>
  
  <p><strong>Update</strong><br>
  Since posting this I've worked out the ins and outs of Dwoo, you can include view files and use things like template inheritance to accomplish the same thing which is neater than assigning views to variables. I don't recommend the later unless you really need too.</p>