| 1 | <?php |
||
| 6 | class CurrencyConverterPage extends Page |
||
|
|
|||
| 7 | { |
||
| 8 | private static $icon = "widgets_currencyconverter/images/treeicons/CurrencyConverterPage"; |
||
| 9 | |||
| 10 | private static $description = "This page is the Currency Converter page"; |
||
| 11 | |||
| 12 | private static $db = array( |
||
| 13 | "IntroText" => "Varchar(250)" |
||
| 14 | ); |
||
| 15 | |||
| 16 | private static $has_one = array( |
||
| 17 | "MainContent" => "WidgetArea" |
||
| 18 | ); |
||
| 19 | |||
| 20 | public function canCreate($member = null) |
||
| 24 | |||
| 25 | public function getCMSFields() |
||
| 31 | } |
||
| 32 | |||
| 54 |
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.