59 public function render($alert = FALSE) {
64 $realView = $this->objectManager->get(
'TYPO3\\CMS\\Install\\View\\StandaloneView');
65 $realView->assignMultiple($this->variables);
66 $realView->setTemplatePathAndFilename($this->templatePathAndFileName);
67 $realView->setLayoutRootPath($this->layoutRootPath);
68 $realView->setPartialRootPath($this->partialRootPath);
70 return $realView->render();
79 $templatePath = preg_replace(
'#\.html$#',
'.phtml', $this->templatePathAndFileName);
81 include $templatePath;
82 $renderedTemplate = ob_get_contents();
85 return $renderedTemplate;
setTemplatePathAndFileName($templatePathAndFileName)
static makeInstance($className)
setLayoutRootPath($layoutRootPath)
setPartialRootPath($partialRootPath)