Classes/Controller/AddressController.php
protected function getPlainRenderer($templateName = 'default', $format = 'txt')
    {
        $view = $this->objectManager->get(StandaloneView::class);
        $view->getRequest()->setControllerExtensionName('registeraddress');
        $view->setFormat($format);


        // find plugin view configuration
        $frameworkConfiguration = $this->configurationManager->getConfiguration(
            ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK
        );

        // find partial paths from plugin configuration
        $partialPaths = $this->getViewProperty($frameworkConfiguration, 'partialRootPaths');
        // set configured partialPaths so they can be overwritten
        $view->setPartialRootPaths($partialPaths);

        $templatePaths = $this->getViewProperty($frameworkConfiguration, 'templateRootPaths');
        $view->setTemplateRootPaths($templatePaths); // set configured TemplateRootPaths from plugin

        $layoutPaths = $this->getViewProperty($frameworkConfiguration, 'layoutRootPaths');
        $view->setLayoutRootPaths($layoutPaths);


        $view->setTemplate($templateName);

        $view->assign('settings', $this->settings);
        return $view;
    }
protected function getPlainRenderer($templateName = 'default', $format = 'txt')
    {
        $view = $this->objectManager->get(StandaloneView::class);
        $view->getRequest()->setControllerExtensionName('registeraddress');
        $view->setFormat($format);


        // find plugin view configuration
        $frameworkConfiguration = $this->configurationManager->getConfiguration(
            ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK
        );

        // find partial paths from plugin configuration
        $partialPaths = $this->getViewProperty($frameworkConfiguration, 'partialRootPaths');
        // set configured partialPaths so they can be overwritten
        $view->setPartialRootPaths($partialPaths);

        $templatePaths = $this->getViewProperty($frameworkConfiguration, 'templateRootPaths');
        $view->setTemplateRootPaths($templatePaths); // set configured TemplateRootPaths from plugin

        $layoutPaths = $this->getViewProperty($frameworkConfiguration, 'layoutRootPaths');
        $view->setLayoutRootPaths($layoutPaths);


        $view->setTemplate($templateName);

        $view->assign('settings', $this->settings);
        return $view;
    }
protected function getPlainRenderer ( $ templateName = 'default' , $ format = 'txt' ) { $ view = $ this -> objectManager -> get ( StandaloneView :: class ) ; $ view -> getRequest ( ) -> setControllerExtensionName ( 'registeraddress' ) ; $ view -> setFormat ( $ format ) ; // find plugin view configuration $ frameworkConfiguration = $ this -> configurationManager -> getConfiguration ( ConfigurationManagerInterface :: CONFIGURATION_TYPE_FRAMEWORK ) ; // find partial paths from plugin configuration $ partialPaths = $ this -> getViewProperty ( $ frameworkConfiguration , 'partialRootPaths' ) ; // set configured partialPaths so they can be overwritten $ view -> setPartialRootPaths ( $ partialPaths ) ; $ templatePaths = $ this -> getViewProperty ( $ frameworkConfiguration , 'templateRootPaths' ) ; $ view -> setTemplateRootPaths ( $ templatePaths ) ; // set configured TemplateRootPaths from plugin $ layoutPaths = $ this -> getViewProperty ( $ frameworkConfiguration , 'layoutRootPaths' ) ; $ view -> setLayoutRootPaths ( $ layoutPaths ) ; $ view -> setTemplate ( $ templateName ) ; $ view -> assign ( 'settings' , $ this -> settings ) ; return $ view ; }
This creates another stand-alone instance of the Fluid view to render a template
@param string $templateName the name of the template to use
@param string $format the format of the fluid template "html" or "txt"
@return StandaloneView the Fluid instance
@throws \TYPO3\CMS\Extbase\Mvc\Exception\InvalidExtensionNameException
This creates another stand - alone instance of the Fluid view to render a template