1 | <?php |
||
8 | class SmartChimpSignupWidget extends Widget |
||
|
|||
9 | { |
||
10 | public static $db = array( |
||
11 | 'BetterTitle' => 'Varchar', |
||
12 | 'Introduction' => 'Text', |
||
13 | 'TextOnButton' => 'Varchar' |
||
14 | ); |
||
15 | |||
16 | public static $has_one = array( |
||
17 | "NewsletterSignUpPage" => "SiteTree" |
||
18 | ); |
||
19 | |||
20 | public static $title = 'Sign Up for Newsletter'; |
||
21 | |||
22 | public static $cmsTitle = 'Sign Up for Newsletter'; |
||
23 | |||
24 | public static $description = 'Links to newsletter signup'; |
||
25 | |||
26 | public function Title() |
||
30 | |||
31 | |||
32 | public function getCMSFields() |
||
75 | } |
||
76 |
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.