Manaus Posted April 21, 2016 Share Posted April 21, 2016 Hello, I need to change $user's data on form submission, this is the code: // prepare for saving $user->of(false); // save the data $user->nome = $nome; $user->cognome = $cognome; $user->azienda = $azienda; [...] $user->save(); $user->of(true); But I get an error: Call $page->setOutputFormatting(false) before getting/setting values that will be modified and saved. Can't get the source of the error. Thanks for any suggestion Link to comment Share on other sites More sharing options...
Robin S Posted April 22, 2016 Share Posted April 22, 2016 Not sure of the cause of that error but if your PW version is >= 2.6.9 you could try the setAndSave method and see if that works. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now