I wrote a module and added a new member class. To do this, I wrote following line in the modules _config.php file:
Object::useCustomClass( "Member", "CommunityMember" );
The CommunityMember.php is located under the modules folder in code/members. The code is:
<?php
/**
* Community Members extend basic member class
*/
class CommunityMember extends Member
{
static $singular_name = "Community Mitglied";
static $plural_name = "Community Mitglieder";
static $db = array(
"Street" => "Varchar(250)",
"ZIP" => "Varchar(50)",
"City" => "Varchar(250)",
"EmailVerified" => "Boolean",
"EmailVerifyHash" => "Varchar(250)",
"MustChangePassword" => "Boolean"
);
}
?>
I used to write a registration form to create members. To do this, I wrote
...
$member = new CommunityMember();
$form->saveInto( $member );
...
inside the method called by form action. It seems alright, the members are created, I can view them in phpmyadmin. But I can not see them in the Backoffice (Tab Security/Group/Members). Does anyone have a idea what´s wrong? If recommended I also post the code of the registration form...
Thanks a lot!