Issue Bug Rejected

#58746setTemplatePathAndFilename not work when original Template was not found

Silvia Bigler 05/13/14, 10:05 updated 07/24/14, 20:45

Description

If I set a new Template in a controller action ( via $this->view->setTemplatePathAndFilename(‘path/to/template/List.html’) ) I get this error when the original action file does not exist in the first place.

error:
Sorry, the requested view was not found.

The technical reason is: No template was found. View could not be resolved for action “search” in class “NWS\UserFjx217\Controller\FileController”.

If the template search.html does not exist, I cannot use another template. This is somehow counterintuitive.

Reviews 1