mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
use the yml config system instead of _config.php for extensions
This commit is contained in:
parent
827ace033a
commit
389b7f929b
@ -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:
|
||||||
Image::add_extension('GalleryImage');
|
extensions:
|
||||||
|
- GalleryImage
|
||||||
|
|
||||||
<div class="notice" markdown='1'>
|
<div class="notice" markdown='1'>
|
||||||
Note: Although you can subclass the Image class instead of using a DataExtension,
|
Note: Although you can subclass the Image class instead of using a DataExtension,
|
||||||
|
Loading…
Reference in New Issue
Block a user