1
0
Fork 0

Overload constructor for layout class to provide a custom layout

This commit is contained in:
Jeremy Bush 2012-10-31 22:00:11 -05:00
parent a701055a58
commit b8c530249f
1 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,13 @@ class Kohana_Kostache_Layout extends Kohana_Kostache {
*/
protected $_layout = 'layout';
public function __construct($engine, $layout = 'layout')
{
$this->_layout = $layout;
parent::__construct($engine);
}
public function render($class, $template = NULL)
{
$this->_engine->setPartials(