Issue Bug Closed

#34844view->setTemplatePathAndFilename bug

Stefano Cecere 03/14/12, 17:49 updated 09/28/15, 16:11

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 :)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.