0

I am using symfony2.

Where should I keep global parameteres?

like DEFINE in C++ header

If there is some rules ,I would like to follow.

I couldn't find description in official documents.

thanks in advance

whitebear
  • 11,200
  • 24
  • 114
  • 237
  • "If there is some rules, I would like to follow." That is not the best way to learn coding. – Geeky Guy Jul 05 '13 at 22:02
  • I think to follow the common rule is important and useful, especially when working with other people... – whitebear Jul 06 '13 at 01:14
  • possible duplicate of [AngularJS: I need to update a service from outside of angular](http://stackoverflow.com/questions/13613288/angularjs-i-need-to-update-a-service-from-outside-of-angular) – Eran Mar 03 '14 at 01:42

1 Answers1

4

put them in app/config/parameters.yml

parameters:
    my_parameter: a_string

if they are specific to a bundle, put them in src/Company/MyBundle/Resources/config/parameters.yml

more info

mattexx
  • 6,456
  • 3
  • 36
  • 47