Browse code

Correct base template name

The base template name used in $loader1 and $loader2 is actually
"base.html", not "base.twig".

Fabien Schurter authored on 16/10/2014 07:32:46
Showing 1 changed files
... ...
@@ -199,7 +199,7 @@ projects where storing all templates in a single PHP file might make sense.
199 199
         'base.html' => '{% block content %}{% endblock %}',
200 200
     ));
201 201
     $loader2 = new Twig_Loader_Array(array(
202
-        'index.html' => '{% extends "base.twig" %}{% block content %}Hello {{ name }}{% endblock %}',
202
+        'index.html' => '{% extends "base.html" %}{% block content %}Hello {{ name }}{% endblock %}',
203 203
         'base.html'  => 'Will never be loaded',
204 204
     ));
205 205