Jump to content

$user->of() error


Manaus
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...