mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
DOCS update example to use Config::modify
This commit is contained in:
parent
24d1207eb9
commit
091d355059
@ -102,7 +102,7 @@ To use those variables in your application code:
|
||||
echo implode(', ', Config::inst()->get('MyClass', 'option_two'));
|
||||
// returns 'Foo, Bar, Baz'
|
||||
|
||||
Config::inst()->set('MyClass', 'option_one', true);
|
||||
Config::modify()->set('MyClass', 'option_one', true);
|
||||
|
||||
echo Config::inst()->get('MyClass', 'option_one');
|
||||
// returns true
|
||||
|
Loading…
Reference in New Issue
Block a user