-
Type:
Bug
-
Status: Closed
-
Priority:
High
-
Resolution: Fixed
-
Affects Version/s: 5.1, 5.2
-
Fix Version/s: Customer request, 5.1 Maintenance, 5.2 Maintenance, 2014.03
-
Component/s: Legacy > Template language, Platform stack
-
Environment:
eZ Publish 5.2
In the new stack, eZ Publish does not properly throw an exception if a template does not exist.
Steps to reproduce:
1. In a controller, try to render a non-existent template:
return $this->render( 'HootsuiteBaseBundle::nonexistent.html.twig' );
Instead of throwing an exception, the output just shows the path to the non-existent template.
2. In a controller, check whether a non-existent template exists:
if( $this->get( 'templating' )->exists( 'eztTrainingBundle::nonexistent.html.twig' ) ) { die( 'exists' ); }
The "exists" check always returns true.