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   1699 Views

Avatar
Josh

27 February 2008 at 1:00pm (Last edited: 27 February 2008 1:00pm), SilverStripe Developer, 65 Posts

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

27 February 2008 at 3:52pm (Last edited: 27 February 2008 3:52pm), SilverStripe Developer, 65 Posts

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