Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Invoking "sendInfo()" function after form registration

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

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

Page: 1
Go to End
Author Topic: 936 Views
  • Cy
    Community Member
    11 Posts

    Invoking "sendInfo()" function after form registration Link to this post

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

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.