在 symfony2 中,我使用了以下配置 yaml:
// config.yml
parameters:
something:
content:
price: 2.30
mainText: 'Some text here.'
redText: 'This is a text here plus price: ' %price%
%price% 错误并给我一个错误,但系统告诉它一个数组,那么如何指向某事['content'][price]?