菜单

Extbase standalone template

2017年03月26日 - typo3
/** @var \TYPO3\CMS\Fluid\View\StandaloneView $fluidTemplate */
        $fluidTemplate = GeneralUtility::makeInstance('TYPO3\CMS\Fluid\View\StandaloneView');
        $fluidTemplate->setLayoutRootPaths(array(GeneralUtility::getFileAbsFileName('EXT:ext_contact_us/Resources/Private/Layouts/')));
        $fluidTemplate->setPartialRootPaths(array(GeneralUtility::getFileAbsFileName('EXT:ext_contact_us/Resources/Private/Partials/')));
        $fluidTemplate->setTemplatePathAndFilename(
            ExtensionManagementUtility::extPath('ext_contact_us') . 'Resources/Private/Templates/ContactUs/Show.html'
        );
        echo $fluidTemplate->render();

发表评论

电子邮件地址不会被公开。 必填项已用*标注