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, Ed, biapar, Willr, Ingo

Invoking "sendInfo()" function after form registration

Go to End



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();
	Group::addToGroupByName($member, 'members');
	sendInfo('signup', $data);
	Director::redirect($this->Link() . 'thanks');