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


1006 Views

Avatar
Cy

Community Member, 11 Posts

9 October 2008 at 12:33pm

Edited: 09/10/2008 12:34pm

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');
}