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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Custom Registration - Where can I extend the Member() class?


Go to End


2 Posts   2009 Views

Avatar
Josh

SilverStripe Developer, 65 Posts

27 February 2008 at 1:00pm

Edited: 27/02/2008 1:00pm

I've got this code working for a custom registration http://pastebin.com/f22b62162 (the file is titled "RegistrationForm.php") and it is writing FirstName, Surname, Email and Password to the database.

Where would be the best (or easiest - just learning this stuff) place to make this added data write to the member field of the database...

extending the Member() class maybe? I can't find it in the CMS...

Cheers

Avatar
Josh

SilverStripe Developer, 65 Posts

27 February 2008 at 3:52pm

Edited: 27/02/2008 3:52pm

Ended up extending member.php as I couldn't understand the DataObjectDecorator tutorial.
:)