Created
June 6, 2011 18:45
-
-
Save yitznewton/1010808 to your computer and use it in GitHub Desktop.
Array for config setting in symfony
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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