1 | <?php |
||
6 | class EvernoteAdminController extends LeftAndMain |
||
|
|||
7 | { |
||
8 | |||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private static $url_segment = 'evernote-settings'; |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private static $url_rule = '/$Action/$ID/$OtherID'; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private static $menu_title = 'Evernote'; |
||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private static $menu_icon = '/silverstripe-evernote/images/evernote.png'; |
||
26 | |||
27 | |||
28 | /** |
||
29 | * @param null $id Not used. |
||
30 | * @param null $fields Not used. |
||
31 | * |
||
32 | * @return Form |
||
33 | */ |
||
34 | public function getEditForm($id = null, $fields = null) |
||
67 | |||
68 | /** |
||
69 | * Save the current sites {@link SiteConfig} into the database. |
||
70 | * |
||
71 | * @param array $data |
||
72 | * @param Form $form |
||
73 | * @return String |
||
74 | */ |
||
75 | public function save_evernotesettings($data, $form) |
||
91 | |||
92 | } |
||
93 |
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.