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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   1930 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.
:)