trying this again
This commit is contained in:
parent
3c74063551
commit
22929c5dae
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue