public function render($template = null) { if (null === $this->_forward) { if (null !== $template) { $this->setTemplate($template); } ob_start(); include 'templates/' . $this->_config->template . '/' . $this->getTemplate(); $content = ob_get_clean(); foreach ($this->_followUp as $comp) { $content .= $comp->render(); } } else { $content = $this->_forward->render(); } return $content; }
public static function add(\Pste\View $view, $params = array()) { return $view->render(); }