mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #2817 from lerni/patch-1
use the yml config system instead of _config.php for extensions
This commit is contained in:
commit
d6deffe8a6
@ -226,10 +226,11 @@ like this:
|
||||
);
|
||||
}
|
||||
|
||||
Now register the DataExtension for the Image class in your _config.php:
|
||||
Now register the DataExtension for the Image class in your _config/config.yml:
|
||||
|
||||
:::php
|
||||
Image::add_extension('GalleryImage');
|
||||
Image:
|
||||
extensions:
|
||||
- GalleryImage
|
||||
|
||||
<div class="notice" markdown='1'>
|
||||
Note: Although you can subclass the Image class instead of using a DataExtension,
|
||||
|
Loading…
x
Reference in New Issue
Block a user