php - Where is the action.class in sfDoctrineGuardPlugin for create new user? -


i installed sfdoctrineguarduser symfony 1.4.11, can't find action.class, register user. find class sfguardcreateusertask :

  protected function execute($arguments = array(), $options = array())   {     $databasemanager = new sfdatabasemanager($this->configuration);      $user = new sfguarduser();     $user->setemailaddress($arguments['email_address']);     $user->setusername($arguments['username']);     $user->setpassword($arguments['password']);     $user->setfirstname($arguments['first_name']);     $user->setlastname($arguments['last_name']);     $user->setisactive(true);     $user->setissuperadmin($options['is-super-admin']);     $user->save();      $this->logsection('guard', sprintf('create user "%s"', $arguments['username']));   } 

but isn't this...

i can't find anywhere example $user->setfirstname($arguments['first_name']); , modified to:

$user->setfirstname($arguments['first_name'] . '@'); 

where action.class in sfdoctrineguardplugin create new user?

basically, don't need action (or customize it) in order create new users. create custom action generates registration form , handles post:

$user = new sfguarduser(); $user-> // manipulate $user->save(); 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -