1 | <?php |
||
3 | class DMSDocumentAdmin extends ModelAdmin |
||
|
|||
4 | { |
||
5 | private static $managed_models = array( |
||
6 | 'DMSDocument' |
||
7 | ); |
||
8 | |||
9 | private static $url_segment = 'documents'; |
||
10 | |||
11 | private static $menu_title = 'Documents'; |
||
12 | |||
13 | /** |
||
14 | * Remove the default "add" button and replace it with a customised version for DMS |
||
15 | * |
||
16 | * @return CMSForm |
||
17 | */ |
||
18 | public function getEditForm($id = null, $fields = null) |
||
32 | } |
||
33 |
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.