1 | <?php |
||
6 | class ForSaleOnePage extends Page |
||
|
|||
7 | { |
||
8 | public static $icon = "mysite/images/treeicons/ForSaleOnePage"; |
||
9 | |||
10 | public static $default_parent = 'ForSaleHolderPage'; |
||
11 | |||
12 | public static $allowed_children = "none"; |
||
13 | |||
14 | public static $db = array( |
||
15 | "IntroText" => "Varchar(255)", |
||
16 | "PriceDescription" => "Varchar(255)", |
||
17 | "ContactDetails" => "HTMLText" |
||
18 | ); |
||
19 | |||
20 | public static $has_one = array( |
||
21 | "ProductImage" => "Image" |
||
22 | ); |
||
23 | |||
24 | |||
25 | //static $has_many = array(); |
||
26 | |||
27 | public function getCMSFields() |
||
39 | } |
||
40 | |||
48 |
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.