Issue Feature Closed

#58087Fluid should support "EXT:" paths

Markus Hölzle 04/22/14, 11:49 updated 10/02/18, 11:58

Description

In extbase controllers you can set a template path:

$this->view->setTemplatePathAndFilename(...);

This should support paths like “EXT:extension_key/Private/Templates/List.html”

In the current version this throws an InvalidTemplateResourceException in TYPO3\CMS\Fluid\View\TemplateView Line 338:

  334         protected function getTemplateSource($actionName = NULL) {
  335                 $templatePathAndFilename = $this->getTemplatePathAndFilename($actionName);
  336                 $templateSource = file_get_contents($templatePathAndFilename);
  337                 if ($templateSource === FALSE) {
  338                         throw new Exception\InvalidTemplateResourceException('"' . $templatePathAndFilename . '" is not a valid template resource URI.', 1257246929);
  339                 }
  340                 return $templateSource;
  341         }

Reviews 2