mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #6776 from muskie9/patch-9
DOCS update example to use Config::modify
This commit is contained in:
commit
ad5b4d5e53
@ -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