Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Invoking "sendInfo()" function after form registration


Reply

950 Views

Avatar
Cy

9 October 2008 at 12:33pm (Last edited: 9 October 2008 12:34pm), Community Member, 11 Posts

What would be an ideal way to invoke the sendInfo() function in sapphire/security/Member.php upon form registration. I am most likely way off but this is what i've tried with no success:

function register($data, $form) {
   $member = new Member();
   $form->saveInto($member);
   $member->write();
   $member->login();
   Group::addToGroupByName($member, 'members');
   sendInfo('signup', $data);
   Director::redirect($this->Link() . 'thanks');
}