Actions
Bug #82407
closedRegression in templatePath resolving
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-09-09
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
It seems like https://review.typo3.org/#/c/53932/ introduced a regression in 8.7.6 which can possibly be fixed by getting the changes of https://review.typo3.org/#/c/53872 in.
What happens:
I render a typoscript object using:
<f:cObject typoscriptObjectPath="lib.myObject" />
The object looks like:
lib.myObject = USER
lib.myObject {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
pluginName = Pi1
extensionName = Extension
vendorName = Vendor
controller = Controller
action = index
view {
layoutRootPaths.0 = EXT:extension/Resources/Private/Layouts/
partialRootPaths.0 = EXT:extension/Resources/Private/Partials/
templateRootPaths.0 = EXT:extension/Resources/Private/Templates/
}
}
This leads to No template was found. View could not be resolved for action "index"
I debugged this and it seems like inside \TYPO3\CMS\Fluid\View\TemplateView::canRender everything is still configured correctly, but then after the call to $this->setControllerContext($controllerContext); all paths are reset to the \TYPO3Fluid\Fluid\View\TemplatePaths::DEFAULT_* constants.
Actions