Commit e9b5d444 authored by Fabien Potencier's avatar Fabien Potencier

merged branch shieldo/patch-1 (PR #232)

Commits
-------

90f24072 added mention of SymfonyBridgesServiceProvider to example of using path() Twig function

Discussion
----------

added mention of SymfonyBridgesServiceProvider to example of using path Twig function

I just spent an hour trying to figure out why using path() in Twig when using Silex wasn't working.  Turns out I hadn't included the SymfonyBridgesServiceProvider, which isn't mentioned in this piece of documentation.

I don't know if this makes the comment too verbose, but if it saves someone else wasting time it'll be worth it.
parents 3d03340e 90f24072
...@@ -80,7 +80,7 @@ from a template: ...@@ -80,7 +80,7 @@ from a template:
{{ render('/sidebar') }} {{ render('/sidebar') }}
{# or if you are also using UrlGeneratorServiceProvider #} {# or if you are also using UrlGeneratorServiceProvider with the SymfonyBridgesServiceProvider #}
{{ render(path('sidebar')) }} {{ render(path('sidebar')) }}
For more information, check out the `Twig documentation For more information, check out the `Twig documentation
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment