Merge pull request #2817 from lerni/patch-1

use the yml config system instead of _config.php for extensions
This commit is contained in:
Ingo Schommer 2014-02-03 11:00:52 -08:00
commit d6deffe8a6
1 changed files with 4 additions and 3 deletions

View File

@ -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,