Skip to content
Browse files

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

Commits
-------

90f2407 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.
  • Loading branch information...
2 parents 3d03340 + 90f2407 commit e9b5d444dbd19a2b669a77b93c39b18e3b33edf2 @fabpot fabpot committed Jan 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/providers/twig.rst
View
2 doc/providers/twig.rst
@@ -80,7 +80,7 @@ from a template:
{{ render('/sidebar') }}
- {# or if you are also using UrlGeneratorServiceProvider #}
+ {# or if you are also using UrlGeneratorServiceProvider with the SymfonyBridgesServiceProvider #}
{{ render(path('sidebar')) }}
For more information, check out the `Twig documentation

0 comments on commit e9b5d44

Please sign in to comment.
Something went wrong with that request. Please try again.