Project

General

Profile

Actions

Bug #34844

closed

view->setTemplatePathAndFilename bug

Added by Stefano Cecere over 12 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2012-03-14
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

i want to use another action template (let's say "List.html) for my Search action

inside searchAction() i call:

$this->view->setTemplatePathAndFilename(t3lib_extMgm::extPath('myxt') . 'Resources/Private/Templates/Mycontroller/List.html');

but it doesn't work well (keeps telling "The technical reason is: No template was found. View could not be resolved for action "search".")

the bug is: if the template file for an action Mycontroller/Action.html exists, then you can change it's template via $this->view->setTemplatePathAndFilename

otherwise it gives error!

i solved creating an empty action template for Search.html .. so i can redirect it to List.html :)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #58746: setTemplatePathAndFilename not work when original Template was not foundRejected2014-05-13

Actions
Actions

Also available in: Atom PDF