From: Fabien Schurter Date: Thu, 16 Oct 2014 07:32:46 +0000 (+0200) Subject: Correct base template name X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=882f44b0d3203330b78e4600bbc0387f9c538020;p=web%2Fkonrad%2Ftwig.git Correct base template name The base template name used in $loader1 and $loader2 is actually "base.html", not "base.twig". --- diff --git a/doc/api.rst b/doc/api.rst index 456754b..7756127 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -199,7 +199,7 @@ projects where storing all templates in a single PHP file might make sense. 'base.html' => '{% block content %}{% endblock %}', )); $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', ));