Answer the question
In order to leave comments, you need to log in
Access in yaml to array element (Symfony 2)?
Maybe someone came across. There is a bundle with parameters.yml
parameters.yml
-
parameters:<br>
acme_default.options:<br>
constants:<br>
root_path: /home/www/acme.ru/web<br>
acme_default.config_path: %acme_default.options.constants[root_path]%/cfg.ini<br>
Answer the question
In order to leave comments, you need to log in
Looked at the source. Parameters must be plain-value, i.e. stupidly key-value i.e. in php you can then get an array via getParameter(), and then its element, but not in the yaml file itself. Thank you.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question