source/Core/UtilsView.php
public function getTemplateOutput($templateName, $oObject)
    {
        $smarty = $this->getSmarty();
        $debugMode = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('iDebug');

        // assign
        $viewData = $oObject->getViewData();
        if (is_array($viewData)) {
            foreach (array_keys($viewData) as $viewName) {
                // show debug information
                if ($debugMode == 4) {
                    echo("TemplateData[$viewName] : \n");
                    var_export($viewData[$viewName]);
                }
                $smarty->assign($viewName, $viewData[$viewName]);
            }
        }

        return $smarty->fetch($templateName);
    }
public function getTemplateOutput($templateName, $oObject)
    {
        $smarty = $this->getSmarty();
        $debugMode = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('iDebug');

        // assign
        $viewData = $oObject->getViewData();
        if (is_array($viewData)) {
            foreach (array_keys($viewData) as $viewName) {
                // show debug information
                if ($debugMode == 4) {
                    echo("TemplateData[$viewName] : \n");
                    var_export($viewData[$viewName]);
                }
                $smarty->assign($viewName, $viewData[$viewName]);
            }
        }

        return $smarty->fetch($templateName);
    }
public function getTemplateOutput ( $ templateName , $ oObject ) { $ smarty = $ this -> getSmarty ( ) ; $ debugMode = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'iDebug' ) ; // assign $ viewData = $ oObject -> getViewData ( ) ; if ( is_array ( $ viewData ) ) { foreach ( array_keys ( $ viewData ) as $ viewName ) { // show debug information if ( $ debugMode == 4 ) { echo ( "TemplateData[$viewName] : \n" ) ; var_export ( $ viewData [ $ viewName ] ) ; } $ smarty -> assign ( $ viewName , $ viewData [ $ viewName ] ) ; } } return $ smarty -> fetch ( $ templateName ) ; }
Returns rendered template output. According to debug configuration outputs
debug information.

@param string $templateName template file name
@param object $oObject      object, witch template we wish to output

@return string
Returns rendered template output . According to debug configuration outputs debug information .