Skip to content

Instantly share code, notes, and snippets.

@jamesstacyjones
Last active December 23, 2015 13:49
Show Gist options
  • Save jamesstacyjones/6644981 to your computer and use it in GitHub Desktop.
Save jamesstacyjones/6644981 to your computer and use it in GitHub Desktop.
symfony - enable debug in twig by placing this into app/config/config_dev.yml
twig:
    debug: %kernel.debug%
services:
   twig.extension.text:
       class: Twig_Extensions_Extension_Text
       tags:
           - { name: twig.extension }
   twig.extension.debug:
       class: Twig_Extensions_Extension_Debug
       tags:
           - { name: twig.extension }
{% debug name_of_variable %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment