Add use statement to example

Add the relevant 'use' statement to the sample code to remind people that it's needed!
This commit is contained in:
DorsetDigital 2018-07-16 14:06:28 +01:00 committed by GitHub
parent 1a634f5ba6
commit 4b90bb264a
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;