Hi,
can anybody explain, how to use the gridfield within a custom siteconfig?
The following will throw an error (PHP Fatal error: Call to undefined method CustomSiteConfig::Mitarbeiter()):
$mitarbeiterField = new GridField(
'Mitarbeiter',
'Mitarbeiter',
$this->owner->Mitarbeiter(),
GridFieldConfig_RelationEditor::create()
);
Can anybody help?