开发者

Config file in Symfony that is global to the project and can be used in models?

Is there a config file in Symfony 1.4 where you can place custom values that is accessible to you开发者_运维知识库r models? I was using app.yml in my frontend app so far but models are common for all applications in the project, so this won't work at the model level.


Create an app.yml file in the main project config/ folder - symfony will be able to use any values defined in it in the standard way. Just make sure the names don't conflict with anything in the app.yml files for each actual app.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜