Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Twig Debug
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
otis  
View profile  
 More options Oct 20 2011, 12:31 pm
From: otis <ovg...@adrexpedite.com>
Date: Thu, 20 Oct 2011 09:31:41 -0700 (PDT)
Local: Thurs, Oct 20 2011 12:31 pm
Subject: Twig Debug
I'm using symfony standard distribution ver 2.04.

When i try to use {% debug variablename %} in dev mode I get an
"Unknown tag name 'debug'" message.

Earlier threads suggest inserting the following in config_dev.yml:

services:
    twig.extension.debug:
    class: Twig_Extensions_Extension_Debug
    tags: [ { name: 'twig.extension' } ]

see also https://github.com/symfony/symfony-docs/issues/455

But when I clear cache and then add those lines to my otherwise
standard config_dev.yml I get this error message:

ErrorException: Warning: array_key_exists() expects parameter 2 to be
array, string given in C:\xampp\htdocs\SfAdrxDates\vendor\symfony\src
\Symfony\Component\DependencyInjection\Loader\YamlFileLoader.php line
133

What to I need to do to enable the debug tag in Twig in symfony 2.04?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
caramba  
View profile  
 More options Oct 20 2011, 1:08 pm
From: caramba <soeren.mart...@handelsdeal.de>
Date: Thu, 20 Oct 2011 10:08:23 -0700 (PDT)
Local: Thurs, Oct 20 2011 1:08 pm
Subject: Re: Twig Debug
i only have this in my config and it runs perfect, i am also on 2.0.4

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

On 20 Okt., 18:31, otis <ovg...@adrexpedite.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
otis  
View profile  
 More options Oct 20 2011, 1:58 pm
From: otis <ovg...@adrexpedite.com>
Date: Thu, 20 Oct 2011 10:58:14 -0700 (PDT)
Local: Thurs, Oct 20 2011 1:58 pm
Subject: Re: Twig Debug
Thank you very much. That syntax does work. The syntax in previous
answers to this question does not.

How did you know not to use the syntax that appears in the reference I
quoted and in previous answers to this question ( e.g.,
https://groups.google.com/forum/#!topic/symfony2/PhrIe9gx5d4/discussi...

On Oct 20, 1:08 pm, caramba <soeren.mart...@handelsdeal.de> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »