silverstripe The Config System

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

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.



Got any silverstripe Question?