Hi, I'm trying to remove some fields from the form generated by sfDoctrineGuard. I don't care about the name or email of my users, I just want them to have an username and a password.
I've tried editing /lib/form/doctrine/sfDoctrineGuardPlugin/sfGuardUserForm.class.php :
class sfGuardUserForm extends PluginsfGuardUserForm
{
public function configure()
{
unset(
$this['first_name'],
$this['last_name'],
$this['email_adress']
);
}
}
But that did nothing. Am I editing the right file ?
EDIT The only way I can make those fields disappear is by editing the file in the /plugins/ directory !
plugins/sfDoctrineGuardPlugin/lib/form/doctrine/sfGuardUserAdminForm.class.php