source/Core/ShopControl.php
protected function _render($view)
    {
        // get Smarty is important here as it sets template directory correct
        $smarty = \OxidEsales\Eshop\Core\Registry::getUtilsView()->getSmarty();

        // render it
        $templateName = $view->render();

        // check if template dir exists
        $templateFile = \OxidEsales\Eshop\Core\Registry::getConfig()->getTemplatePath($templateName, $this->isAdmin());
        if (!file_exists($templateFile)) {
            $ex = oxNew(\OxidEsales\Eshop\Core\Exception\SystemComponentException::class);
            $ex->setMessage('EXCEPTION_SYSTEMCOMPONENT_TEMPLATENOTFOUND' . ' ' . $templateName);
            $ex->setComponent($templateName);

            $templateName = "message/exception.tpl";

            if ($this->_isDebugMode()) {
                \OxidEsales\Eshop\Core\Registry::getUtilsView()->addErrorToDisplay($ex);
            }
            \OxidEsales\Eshop\Core\Registry::getLogger()->error($ex->getMessage(), [$ex]);
        }

        // Output processing. This is useful for modules. As sometimes you may want to process output manually.
        $outputManager = $this->_getOutputManager();
        $viewData = $outputManager->processViewArray($view->getViewData(), $view->getClassName());
        $view->setViewData($viewData);

        //add all exceptions to display
        $errors = $this->_getErrors($view->getClassName());
        if (is_array($errors) && count($errors)) {
            \OxidEsales\Eshop\Core\Registry::getUtilsView()->passAllErrorsToView($viewData, $errors);
        }

        foreach (array_keys($viewData) as $viewName) {
            $smarty->assign($viewName, $viewData[$viewName]);
        }

        // passing current view object to smarty
        $smarty->oxobject = $view;

        $output = $this->fetchSmartyOutput($smarty, $templateName, $view->getViewId());

        //Output processing - useful for modules as sometimes you may want to process output manually.
        $output = $outputManager->process($output, $view->getClassName());

        return $outputManager->addVersionTags($output);
    }
protected function _render($view)
    {
        // get Smarty is important here as it sets template directory correct
        $smarty = \OxidEsales\Eshop\Core\Registry::getUtilsView()->getSmarty();

        // render it
        $templateName = $view->render();

        // check if template dir exists
        $templateFile = \OxidEsales\Eshop\Core\Registry::getConfig()->getTemplatePath($templateName, $this->isAdmin());
        if (!file_exists($templateFile)) {
            $ex = oxNew(\OxidEsales\Eshop\Core\Exception\SystemComponentException::class);
            $ex->setMessage('EXCEPTION_SYSTEMCOMPONENT_TEMPLATENOTFOUND' . ' ' . $templateName);
            $ex->setComponent($templateName);

            $templateName = "message/exception.tpl";

            if ($this->_isDebugMode()) {
                \OxidEsales\Eshop\Core\Registry::getUtilsView()->addErrorToDisplay($ex);
            }
            \OxidEsales\Eshop\Core\Registry::getLogger()->error($ex->getMessage(), [$ex]);
        }

        // Output processing. This is useful for modules. As sometimes you may want to process output manually.
        $outputManager = $this->_getOutputManager();
        $viewData = $outputManager->processViewArray($view->getViewData(), $view->getClassName());
        $view->setViewData($viewData);

        //add all exceptions to display
        $errors = $this->_getErrors($view->getClassName());
        if (is_array($errors) && count($errors)) {
            \OxidEsales\Eshop\Core\Registry::getUtilsView()->passAllErrorsToView($viewData, $errors);
        }

        foreach (array_keys($viewData) as $viewName) {
            $smarty->assign($viewName, $viewData[$viewName]);
        }

        // passing current view object to smarty
        $smarty->oxobject = $view;

        $output = $this->fetchSmartyOutput($smarty, $templateName, $view->getViewId());

        //Output processing - useful for modules as sometimes you may want to process output manually.
        $output = $outputManager->process($output, $view->getClassName());

        return $outputManager->addVersionTags($output);
    }
protected function _render ( $ view ) { // get Smarty is important here as it sets template directory correct $ smarty = \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsView ( ) -> getSmarty ( ) ; // render it $ templateName = $ view -> render ( ) ; // check if template dir exists $ templateFile = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getTemplatePath ( $ templateName , $ this -> isAdmin ( ) ) ; if ( ! file_exists ( $ templateFile ) ) { $ ex = oxNew ( \ OxidEsales \ Eshop \ Core \ Exception \ SystemComponentException :: class ) ; $ ex -> setMessage ( 'EXCEPTION_SYSTEMCOMPONENT_TEMPLATENOTFOUND' . ' ' . $ templateName ) ; $ ex -> setComponent ( $ templateName ) ; $ templateName = "message/exception.tpl" ; if ( $ this -> _isDebugMode ( ) ) { \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsView ( ) -> addErrorToDisplay ( $ ex ) ; } \ OxidEsales \ Eshop \ Core \ Registry :: getLogger ( ) -> error ( $ ex -> getMessage ( ) , [ $ ex ] ) ; } // Output processing. This is useful for modules. As sometimes you may want to process output manually. $ outputManager = $ this -> _getOutputManager ( ) ; $ viewData = $ outputManager -> processViewArray ( $ view -> getViewData ( ) , $ view -> getClassName ( ) ) ; $ view -> setViewData ( $ viewData ) ; //add all exceptions to display $ errors = $ this -> _getErrors ( $ view -> getClassName ( ) ) ; if ( is_array ( $ errors ) && count ( $ errors ) ) { \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsView ( ) -> passAllErrorsToView ( $ viewData , $ errors ) ; } foreach ( array_keys ( $ viewData ) as $ viewName ) { $ smarty -> assign ( $ viewName , $ viewData [ $ viewName ] ) ; } // passing current view object to smarty $ smarty -> oxobject = $ view ; $ output = $ this -> fetchSmartyOutput ( $ smarty , $ templateName , $ view -> getViewId ( ) ) ; //Output processing - useful for modules as sometimes you may want to process output manually. $ output = $ outputManager -> process ( $ output , $ view -> getClassName ( ) ) ; return $ outputManager -> addVersionTags ( $ output ) ; }
Render BaseController object.

@param FrontendController $view view object to render

@return string
Render BaseController object .