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, Ed, biapar, Willr, Ingo

Forum code question about $form->loadDataFrom($member);

Go to End



Community Member, 501 Posts

25 September 2007 at 7:23am

Edited: 25/09/2007 8:41am

Looking at the forum code, in ForumMemberProfile.php there are the methods RegistrationForm() and doregister().

I'm wondering what this is doing in the RegistrationForm() method:

$member = new Member();

Not sure what it does and why it is there... Imean I know what the first line does, but the member seems to be created in the doregister()-method anyway, so I can't understand why it is here and why loadDataFrom is needed, and what it is doing...?

And another question.. sorry :-) :
a few times in the doregister-method I see


But sometimes the 'die;' isn't there at all. Neither is 'die' used in the forms tutorial.
When using this die-function in my form in the same way as in the ForumMemberProfile the redirectback doesn't seem to work either... it just dies before getting the chance to redirect.