To work with Silverstripe, you need to be kiinda' comfortable with OO and MVC patterns ...
I will try to take a better look at the tutorials.... and OO and MVC. Thanks a lot for your patience
<?php
class Blabla extends Page {
public static $db = array(
'Companies' => 'Text'
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab('Root.Content.Companies', new OptionsetField('Companies', '', $DataObjectSet->toDropDownMap('id','name')));
return $fields;
}
}
class Blabla_Controller extends Page_Controller {
public function init() {
parent::init();
}
?>
flushing dies (no error but nothing after GhostPage)
Victor