Merge pull request #8264 from DorsetDigital/patch-8

Add use statement to example
This commit is contained in:
Daniel Hensby 2018-07-16 14:49:46 +01:00 committed by GitHub
commit 5ec5921099
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,8 @@ To access variables in the PHP:
```php
use Silverstripe\SiteConfig\SiteConfig;
$config = SiteConfig::current_site_config();
echo $config->Title;