public function render() { if (!$this->render_layout) { return parent::render(); } $partials = $this->_partials; $partials[Kostache_Layout::CONTENT_PARTIAL] = $this->_template; $template = $this->_load($this->_layout); return $this->_stash($template, $this, $partials)->render(); }
/** * Renders the body template into the layout */ public function render($template = null, $view = null, $partials = null) { // Override the template location to match kohana's conventions if (!$this->_template) { $foo = explode('_', get_class($this)); array_shift($foo); $this->_template = strtolower(implode('/', $foo)); } $this->_partials += array('body' => $this->_template); // Make the layout view the child class's template $this->_template = $this->_layout; return parent::render($template, $view, $partials); }
public function render() { $this->_parse_data(); return parent::render(); }