trying this again

This commit is contained in:
Jeremy Bush 2010-08-09 08:48:41 -05:00
parent 3c74063551
commit 22929c5dae

View file

@ -15,9 +15,12 @@ class View_Kohana_Layout extends Kostache
public function render($template = null, $view = null, $partials = null)
{
$this->_partials+=array(
'body' => $view_location
'body' => $this->_template
);
// Make the layout view the child class's template
$this->_template = file_get_contents(Kohana::find_file('templates', $this->_layout, 'mustache'));
return parent::render($template, $view, $partials);
}