title: How does codeigniter load view files and pass variables through?
body: <p>I've read through the source code but it seems a little cryptic. I'm just trying to get my head around how CI transforms an array into individual variables available to the view.</p>
  
  <p>I gather that the view is included with include(), but the variables seem to only be effective for the view.</p>
  
  <p>Controller:</p>
  
  <pre><code>$this-&gt;load-&gt;view('about', array('title' =&gt; 'about'));
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>&lt;?php echo $title; // shows 'about' ?&gt;
  </code></pre>