1 | <?php |
||
8 | class StaffProfilesPage extends Page |
||
|
|||
9 | { |
||
10 | private static $icon = "mysite/images/treeicons/StaffProfilesPage"; |
||
11 | |||
12 | private static $allowed_children = array("StaffProfilesOnePerson"); //can also be "none"; |
||
13 | |||
14 | private static $default_child = "StaffProfilesOnePerson"; |
||
15 | |||
16 | private static $db = array( |
||
17 | "DefaultEmail" => "Varchar(255)", |
||
18 | "SubjectLine" => "Varchar(255)" |
||
19 | ); |
||
20 | |||
21 | private static $has_many = array( |
||
22 | "StaffProfiles" => "StaffProfile" |
||
23 | ); |
||
24 | |||
25 | public function getCMSFields() |
||
56 | |||
57 | public function StaffProfilesAll() |
||
61 | } |
||
62 | |||
71 |
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.