How to enable Twig's dump() in Symfony2

Viewed 6285

Seeing various threads on this topic but not finding a working answer. Have a simple Symfony2 app (2.3.5) and trying to dump variables passed into my Twig templates. I have in my app/config/config.yml:

# Twig Configuration
twig:
    debug:            %kernel.debug%
    strict_variables: %kernel.debug%

and in my app/config/config_dev.yml:

services:
    twig.extension.debug:
        class: Twig_Extensions_Extension_Debug
        tags:
           - { name: twig.extension }

But using dump() in a twig still renders an empty page. I also increased memory limit in php.ini to 512 ... still nothing

Which part of this am I missing?

4 Answers
Related