1 | <?php |
||
2 | class ContactPageMessage extends DataObject { |
||
|
|||
3 | |||
4 | public static $db = array( |
||
5 | 'Name' => 'Varchar(255)', |
||
6 | 'Email' => 'Varchar(255)', |
||
7 | 'Comments' => 'Text', |
||
8 | 'RepliedTo' => 'Boolean' |
||
9 | ); |
||
10 | |||
11 | |||
12 | |||
13 | // tidy up the CMS by not showing these fields |
||
14 | public function getCMSFields() { |
||
22 | |||
23 | } |
||
24 | ?> |
||
25 |
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.