Project

General

Profile

Actions

Feature #58087

closed

Fluid should support "EXT:" paths

Added by Markus Hölzle over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2014-04-22
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

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         }


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #67033: Fluid StandaloneView does not resolve paths like EXT:my_ext/foo/barClosed2015-05-19

Actions
Actions

Also available in: Atom PDF