I got some configuration data in app.yml and I want to foresee them in action. I try to do this by getting them sfConfig :: get ('app_datas'), but it does not work. Let's show them in detail:
YAML:
all: datas: foo: bar foo2: bar2
and in actions.class.php I'm trying to use this code:
foreach (sfConfig::get('app_datas') as $key => $value) { echo "key $key has value $value"; }
it does not work because sfConfig :: get ('app_datas') is NULL, how easy is it to get it?
arrays yaml symfony1 associative
quardas
source share