title: Passing variables from controller to views
body: <p>I'm using kohana 3.3 together with kostache. Ok how do you pass a variable from controller to class views and use it on a mustache file?..</p>
  
  <p>Here's my code.</p>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>public function action_update()
  {
      $layout = Kostache_Layout::factory();
  
      $content = new View_Pages_Album_Update();
  
      $album = ORM::factory('Album_Information', $this-&gt;request-&gt;post('id'));
  
      $content-&gt;albumName = $album-&gt;Album_Name;
  
      $content-&gt;albumArtist = $album-&gt;Artist;
  
      $this-&gt;response-&gt;body($layout-&gt;render($content));
  }
  </code></pre>
  
  <p><strong>Views</strong></p>
  
  <pre><code>class View_Pages_Album_Update {
  
      public $title = 'Update Music';
  
      public function album_edit()
      {
          return array(
                      array('albumName' =&gt; $this-&gt;albumName),
                      array('albumArtist' =&gt; $this-&gt;albumArtist),
          );
      }
  }
  </code></pre>
  
  <p><strong>Template</strong></p>
  
  <pre><code>&lt;label&gt;Album Name:&lt;/label&gt;
  
  &lt;input type="text" name="inputAlbumName" value="{{albumName}}" /&gt;&lt;br /&gt;
  
  &lt;label&gt;Artist:&lt;/label&gt;
  &lt;input type="text" name="inputArtist" value="{{albumArtist}}" /&gt;&lt;br /&gt;
  </code></pre>
  
  <p>When I run my code nothing is passed to the template file. So how do you pass it from controller => views => template?</p>