Jon Dean
Jon Dean

Reputation: 215

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 your 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.

Upvotes: 2

Views: 370

Answers (1)

Raise
Raise

Reputation: 2034

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.

Upvotes: 3

Related Questions