Hey guys,
Just beginning to extend the basic site using the tutorial... trying to mix and match some code and it just crashes my install.
Can anyone see anything wrong with the below?
<?php
class FeatureArticlePage extends Page {
static $db = array(
'Date' => 'Date'
'Author' => 'Text'
);
static $has_one = array(
'Photo' => 'Image'
);
static $defaults = array(
'ProvideComments' => true
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.Images', new ImageField('Photo'));
$fields->addFieldToTab('Root.Content.Main', new CalendarDateField('Date'), 'Content');
$fields->addFieldToTab('Root.Content.Main', new TextField('Author'), 'Content');
return $fields;
}
}
class FeatureArticlePage_Controller extends Page_Controller {
}
?>
Cheers in advance.