| 1 | <?php |
||
| 4 | class EcommerceDashboard extends Dashboard |
||
|
|
|||
| 5 | { |
||
| 6 | private static $menu_title = "Dashboard"; |
||
| 7 | |||
| 8 | private static $url_segment = "ecom-dashboard"; |
||
| 9 | |||
| 10 | private static $menu_priority = 100; |
||
| 11 | |||
| 12 | private static $url_priority = 30; |
||
| 13 | |||
| 14 | private static $menu_icon = "dashboard/images/dashboard.png"; |
||
| 15 | |||
| 16 | private static $tree_class = 'EcommerceDashboardPanel'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Gets all the available panels that can be installed on the dashboard. All subclasses of |
||
| 20 | * {@link DashboardPanel} are included |
||
| 21 | * |
||
| 22 | * @return ArrayList |
||
| 23 | */ |
||
| 24 | public function AllPanels() |
||
| 39 | } |
||
| 40 |
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.