Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Error talking to server


Go to End


1039 Views

Avatar
erwanpia

Community Member, 63 Posts

26 March 2008 at 7:06am

Hi I get this error when trying to save a record using DateField or CalendarDateField on a CalendarDateField, any hint on debugging that stuff?

<?
class Event extends DataObject {

static $db = array(
'Lieu' => 'Text',
'CodePostal' => 'Text',
'DateDebut' => 'Date',
'DateFin' => 'Date'
);
static $has_one = array(
'MyProject' => 'Project'
);
function getCMSFields_forPopup() {
$fields = new FieldSet();
$fields->push( new TextField( 'Lieu' ) );
$fields->push( new TextField( 'CodePostal' ) );
$fields->push( new CalendarDateField( 'DateDebut' ) );
$fields->push( new CalendarDateField( 'DateFin' ) );
return $fields;
}

}?>