Remember me? forgot password | register

SilverStripe Forum

10689 Posts in 2796 Topics by 1518 members

Jump to:

Site Builders

If this is your first visit, you will need to register before you can post. However, you can browse all messages below.

Community » SilverStripe Forum » Site Builders » Error talking to server
Page: 1 go to end Reply
Author Topic: Error talking to server 265 views
  • erwanpia
    erwanpia's avatar
    Community Member
    34 posts

    Error talking to server Link to this post

    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;
    }

    }?>

    265 views
go to top Reply

Currently Online:

François, eljefe, Dig, patrics, simon_w, Aster

Welcome to our latest member: patrics