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

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


Reply


2 Posts   1715 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 [url]http://pastebin.com/f22b62162[/url] (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.
:)