Update 11-page-menu.md

This commit is contained in:
Patrick Louys 2016-11-02 13:14:13 +01:00 committed by lubiana
parent 8ca70b8964
commit 3d85fdd97c
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk

View file

@ -48,7 +48,7 @@ As you can see, on the render function call a `.html` is added. This is because
Add the following code to your `Dependencies.php` file:
```php
$injector->delegate('Twig_Environment', function() use ($injector) {
$injector->delegate('Twig_Environment', function () use ($injector) {
$loader = new Twig_Loader_Filesystem(dirname(__DIR__) . '/templates');
$twig = new Twig_Environment($loader);
return $twig;