Looking for silverstripe Answers? Try Ask4KnowledgeBase
Looking for silverstripe Keywords? Try Ask4Keywords

silverstripeThe Config System


Remarks

What is the config system

SilverStripe uses a global config system to store settings for classes and the application. These config variables can be used to define the structure of Models, security settings on Controllers or API keys for third party services.

How it works

Config values are populated by the SS_ConfigStaticManifest during a dev/build and cache flush (appending ?flush to any URL`) or on first ever run of the application code.

The SS_ConfigStaticManifest will scan all PHP classes and YAML config files for any config values and build a cache of these values.

When making change to Config settings via YAML or private static variables, you'll need to flush the cache for these changes to take effect.