mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-27 11:56:23 +02:00
Update 00_Configuration.md
This commit is contained in:
parent
f0ab53733c
commit
e83edf7e94
@ -57,7 +57,7 @@ $config = Config::inst()->get('MyClass', 'property');
|
|||||||
Or through the `config()` method on the class.
|
Or through the `config()` method on the class.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
$config = $this->config()->get('property')';
|
$config = $this->config()->get('property');
|
||||||
```
|
```
|
||||||
|
|
||||||
You may need to apply the [Configurable](api:SilverStripe\Core\Config\Configurable) trait in order to access the `config()` method.
|
You may need to apply the [Configurable](api:SilverStripe\Core\Config\Configurable) trait in order to access the `config()` method.
|
||||||
|
Loading…
Reference in New Issue
Block a user