1 | <?php |
||
12 | class ProductsAndGroupsModelAdmin extends ModelAdminEcommerceBaseClass |
||
|
|||
13 | { |
||
14 | private static $menu_priority = 3.2; |
||
15 | |||
16 | private static $url_segment = 'products'; |
||
17 | |||
18 | private static $menu_title = 'Products'; |
||
19 | |||
20 | private static $allowed_actions = array( |
||
21 | 'editinsitetree', |
||
22 | 'ItemEditForm', |
||
23 | ); |
||
24 | |||
25 | /** |
||
26 | * standard SS variable. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | private static $menu_icon = 'ecommerce/images/icons/product-file.gif'; |
||
31 | |||
32 | |||
33 | public function getEditForm($id = null, $fields = null) |
||
46 | } |
||
47 |
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.