| 1 | <?php |
||
| 10 | class AccordionPageExtension extends DataExtension |
||
|
|
|||
| 11 | { |
||
| 12 | private static $description = '<p>Create Accordion items here, the title will be the header and the content will show on click. To add the accordion in the content, simply put [accordion] in the WYSIWYG editor at the place where you want the accordion to appear.</p>'; |
||
| 13 | |||
| 14 | private static $has_many = [ |
||
| 15 | 'AccordionItems' => 'AccordionItem' |
||
| 16 | ]; |
||
| 17 | |||
| 18 | public function updateCMSFields(FieldList $fields) |
||
| 32 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.