Correct base template name

The base template name used in $loader1 and $loader2 is actually
"base.html", not "base.twig".
This commit is contained in:
Fabien Schurter
2014-10-16 09:32:46 +02:00
parent 91a3660f7b
commit 882f44b0d3
+1 -1
View File
@@ -199,7 +199,7 @@ projects where storing all templates in a single PHP file might make sense.
'base.html' => '{% block content %}{% endblock %}', 'base.html' => '{% block content %}{% endblock %}',
)); ));
$loader2 = new Twig_Loader_Array(array( $loader2 = new Twig_Loader_Array(array(
'index.html' => '{% extends "base.twig" %}{% block content %}Hello {{ name }}{% endblock %}', 'index.html' => '{% extends "base.html" %}{% block content %}Hello {{ name }}{% endblock %}',
'base.html' => 'Will never be loaded', 'base.html' => 'Will never be loaded',
)); ));