Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as text by seth ( 18 years ago )
class italianParams extends DataObject {
 
    static $db = array(
        'MenuItem' => 'Text',
        'Description' => 'Text',
        'Price' => 'Text'
    );
    static $has_one = array(
      'Dinners' => 'Dinner',
      'Lunches' => 'Lunch'
   );
   function getCMSFields_forPopup() {
      $fields = new FieldSet();
      $fields->push( new TextField( 'MenuItem' ) );
      $fields->push( new TextField( 'Description' ) );
      $fields->push( new TextField( 'Price' ) );
      return $fields;
   }
}

 

Revise this Paste

Your Name: Code Language: