Configuring your App

Configuration Settings

The ConfigurationSetting class provides a way of accessing an app's configuration. The fetch method allows you to get a configuration setting for a key, and the set method allows you to set the configuration value for a key. Keys are lower case and have dots separating sections of the keys, so that we can organize related keys by having them share a prefix.

An application's configuration settings are kept in its configuration attribute. The default initializer will load configuration from a few property list files: sessions, localization, and database. If you have property list files with these names in your app's Resources folder, then their contents will be available in the configuration under those top-level names. You can also load other files in your app's custom initializer, or you can set individual keys.