24/09/2014 - TWIG
Assuming that you want to print a parameter value in a or all twig files.
# app/config/parameters.yml
parameters:
project_name: Sport
# app/config/parameters.yml
twig:
globals:
project_name: %project_name%
This will print "Sport".
# src/Football/FrontendBundle/Resources/views/Default/index.html.twig
{{ project_name }}