12/03/2017 5:30pm

PHP | Problem -


<?php 


class Starter extends Menu {
private static $has_one = array (
'Restaurant' => 'Restaurant'
);


private static $db = array (
'Menu' => 'Varchar(255)',
'MenuBeskrivelse' => 'Varchar(255)',
'MenuPris' => 'Int'
);


public function getCMSFields()
{
$fields = FieldList::create(
TextField::create('Titel'),
TextField::create('Beskrivelse'),
NumericField::create('Pris')
);

return $fields;
}

}