Skip to content

Instantly share code, notes, and snippets.

@yitznewton
Created June 6, 2011 18:45
Show Gist options
  • Save yitznewton/1010808 to your computer and use it in GitHub Desktop.
Save yitznewton/1010808 to your computer and use it in GitHub Desktop.
Array for config setting in symfony
# non-obvious and sub-well-documented method to retrieve multiple values for
# config setting, e.g. sfConfig::get('app_offsite-testing-ip-addresses')
all:
.options:
offsite-testing-ip-addresses:
- 192.168.35.184
- 192.168.87.113
@yitznewton
Copy link
Author

yes; it's the .foo notation that had been eluding me. I see now that this is mentioned at http://www.symfony-project.org/gentle-introduction/1_4/en/05-Configuring-Symfony#chapter_05_sub_custom_application_settings_and_app_yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment