sfConfig::get is not returning constants defined in app.yml
- by morpheous
I have an interesting problem.
I am using Symfony 1.3.2.
I have defined some constants in project/apps/frontend/config/app.yml and
project/config/app.yml
When I use the constant (correct spelling) in a piece of code like this
$test=sfConfig::get('app_foobar');
the variable $test is assigned a null value.
This is what I have checked so far:
CHECK: cache files generated? (YES)
CHECK: Do the cache files (config_app.yml.php) in the cache directory contain the constants defined in the app.yml file (YES)
CHECK: Constant names used in the code matches the array keys found in config_app.yml? (YES)
At this stage, I have run out of ideas. I dont want to supply a default value as a hack, because when I need to change the value of the constant, I will have to replace this in potentially hundreds of instances (too error prone).
Is there anything that I have missed?. What could be causing this?