title: Codeigniter - Set a variable in in view
body: <p>Can I set a variable in view file?</p>
  
  <p>for exemple:
  I have a controller: welcome.php
  Its load:</p>
  
  <pre><code>$this-&gt;load-&gt;view('header');
  $this-&gt;load-&gt;view('main');
  $this-&gt;load-&gt;view('footer');
  </code></pre>
  
  <p>I need set a variable on file main.php and get on footer.php</p>
  
  <p>Its possible? </p>