View more context

 

kinglozzer

It’d need rebuilding from scratch anyway 😛

dorsetdigital

For the actual project, I think the toast will be a bit less intrusive anyway. It's so a micromanager can "assist" the editors

😝 (1)
robbieaverill

do you have that as a Role in your CMS? that'd be classic

StefanO

Hi all, So I'm having trouble creating a form that will allow users to update their own details. I have extended the member class and added a few extra fields relevant to the site. Then I've created a page that only logged in users can access which has a form that has all the same fields as the member field. If when I build the form I do: $member = ExtendedMember::currentUser(); $form->loadDataFrom($member); return $form; It doesn't work. Any ideas why?

StefanO

I also can't save the form results to the user like I would expect inside the submit method: private function submitForm($data, $form){ $member = ExtendedMember::currentUser(); $form->saveInto($member); $member->write(); $form->sessionMessage('Your details have been updated','good'); return $this->redirectBack(); }

StefanO

Any help would be greatly appreciated. Thanks

frontiex

@StefanO Did you use a data extension to extend the member class?

frontiex

Did you want the Member class to be separate from the ExtendedMember class?

 

[2019-03-22 08:22:25] manifestcache-log.WARNING: Failed to save values {"keys":["__CACHE__"],"exception":null} []