/** * render the uncompiled source * @param Smarty_Internal_Template $_template template object */ public function renderUncompiled(Smarty_Internal_Template $_template) { $level = ob_get_level(); ob_start(); try { $this->handler->renderUncompiled($_template->source, $_template); return ob_get_clean(); } catch (Exception $e) { while (ob_get_level() > $level) { ob_end_clean(); } throw $e; } }
/** * Render uncompiled source * * @param \Smarty_Internal_Template $_template */ public function render(Smarty_Internal_Template $_template) { if ($_template->source->handler->uncompiled) { if ($_template->smarty->debugging) { $_template->smarty->_debug->start_render($_template); } $this->handler->renderUncompiled($_template->source, $_template); if (isset($_template->parent) && $_template->parent->_objType == 2 && !empty($_template->tpl_function)) { $_template->parent->tpl_function = array_merge($_template->parent->tpl_function, $_template->tpl_function); } if ($_template->smarty->debugging) { $_template->smarty->_debug->end_render($_template); } } }
/** * render the uncompiled source * * @param Smarty_Internal_Template $_template template object */ public function renderUncompiled(Smarty_Internal_Template $_template) { return $this->handler->renderUncompiled($this, $_template); }
/** * render the uncompiled source * * @param Smarty_Internal_Template $_template template object */ public function renderUncompiled(Smarty_Internal_Template $_template) { try { ob_start(); $this->handler->renderUncompiled($_template->source, $_template); return ob_get_clean(); } catch (Exception $e) { ob_get_clean(); throw $e; } }