Hi all,
In 2.4 I've extended the built-in class Group and now I'm trying to port this to 3.0, but can't get it to work.
Organisation.php looks like this:
<?php
class Organisation extends DataExtension {
...
}
Organisations.php looks like this:
<?php
class Organisations extends ModelAdmin {
public static $managed_models = array(
'Group'
);
static $url_segment = 'abc';
static $menu_title = 'abc';
}
In _config.php I have this:
Object::add_extension('Group', 'Organisation');
Everything looks fine, besides the fact that I can't save a group through this modeladmin. All I get is this error message:
"ERROR [User Error]: singleton() Called without a class
IN POST /mokss/admin/organisations/Group/EditForm/field/Group/item/4/ItemEditForm
Line 372 in /Applications/MAMP/htdocs/*****/framework/core/Core.php"
Any clue?