Permalink
Browse files

trying this again

  • Loading branch information...
1 parent 3c74063 commit 22929c5dae04b98793dde6157e25d95263fd4705 @zombor zombor committed Aug 9, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 classes/view/kohana/layout.php
@@ -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);
}

0 comments on commit 22929c5

Please sign in to comment.