Tags

$guarduser = new sfGuardUser();
$guarduser->setUsername($username);
$guarduser->setIsActive(1);
$guarduser->setPassword($password);
$guarduser->save();

$user = new User();
$user->sf_guard_user_id = $guarduser->id;
$user->name = $name;
$user->surname = $surname;
$user->country_id = $country;
$user->save();

Advertisements