/** * {@inheritdoc} * * @param string $path * @param array $params * @param boolean $mustClean */ public function render($path, $params, $mustClean = null) { if (!isset($params['content'])) { $params['content'] = $this->_view->getContent(); } foreach ($params as $key => $value) { $this->smarty->assign($key, $value); } $this->_view->setContent($this->smarty->fetch($path)); }
/** * {@inheritdoc} * * @param string $path * @param array $params * @param boolean $mustClean */ public function render($path, $params, $mustClean = false) { if (!isset($params['content'])) { $params['content'] = $this->_view->getContent(); } foreach ($params as $key => $value) { $this->smarty->assign($key, $value); } $content = $this->smarty->fetch($path); if ($mustClean) { $this->_view->setContent($content); } else { echo $content; } }