1 | <?php |
||
2 | class SideTextWidget extends Widget |
||
|
|||
3 | { |
||
4 | public static $has_one = array( |
||
5 | "SideTextWidgetContent" => "SideTextWidgetDataObject" |
||
6 | ); |
||
7 | |||
8 | public static $title = "Side bar section"; |
||
9 | |||
10 | public static $cmsTitle = "Side bar section"; |
||
11 | |||
12 | public static $description = "Add a section to your side bar"; |
||
13 | |||
14 | public function SideText() |
||
18 | |||
19 | public function getCMSFields() |
||
28 | |||
29 | public function getCmsTitle() |
||
33 | } |
||
34 | |||
45 |
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.