Related questions
get current url in twig template?
I looked around for the code to get the current path in a Twig template (and not the full URL), i.e.
I don't want http://www.sitename.com/page, I only need /page.
How to get config parameters in Symfony2 Twig Templates
I have a Symfony2 Twig template. I want to output the value of a config parameter in this twig template (a version number). Therefore I defined the config parameter like this:
parameters:
app.version: 0.1.0
I'm able to use this config …