<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

 <title>Dave Dash</title>
 <link href="http://davedash.com/tag/configuration/atom.xml" rel="self"/>
 <link href="http://davedash.com/tag/configuration"/>
 <updated>2012-04-07T22:42:44-07:00</updated>
 <id>http://davedash.com/</id>
 <author>
   <name>Dave Dash</name>
   <email>dd+atom1@davedash.com</email>
 </author>

 
 <entry>
   <title>Debugging yaml configuration with the symfony web debugger</title>
   <link href="http://davedash.com/2007/05/21/debugging-yaml-configuration-with-the-symfony-web-debugger/"/>
   <updated>2007-05-21T00:00:00-07:00</updated>
   <id>http://davedash.com/2007/05/21/debugging-yaml-configuration-with-the-symfony-web-debugger</id>
   <content type="html">&lt;p&gt;[tags]symfony, yaml, configuration, web debug, debug[/tags]
There's no doubt that &lt;a href=&quot;http://www.yaml.org/&quot;&gt;yaml&lt;/a&gt; configuration files in &lt;a href=&quot;http://symfony-project.com/&quot;&gt;symfony&lt;/a&gt; can be troublesome to debug.&lt;/p&gt;

&lt;p&gt;The symfony web debugger comes to the rescue.&lt;/p&gt;

&lt;p&gt;Let's say you're &lt;code&gt;app.yml&lt;/code&gt; has the following:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;app:
  admin:
    email: me@example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In your development environment you can look at click on &quot;vars &amp;amp; config&quot;  and under settings see all the &lt;code&gt;sfConfig::get&lt;/code&gt;able variables.  You'll find the above listed as:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;app_admin_email: me@example.com
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This technique is very handy when trying to figure out what key you need to use in &lt;code&gt;sfConfig::get()&lt;/code&gt;.&lt;/p&gt;
</content>
 </entry>
 

</feed>

