I'm trying to update an user with update_user function. But I have got this error.
Fatal error: Uncaught exception ‘Exception’ with message ‘Undefined method on_auth::update_user() called’
My code is
$id = 8;
$data = array(
'first_name' => 'Ben',
'last_name' => 'Edmunds',
);
$this->ion_auth->update_user($id, $data);
I found the answer. The problem is the author didn't update user guide. Therefore, I had go through codes and found the solutions. In addition to that, this function is not the only function that should have changed in documentation. There are many. I hope he updates soon.
Solution
Instead of
$this->ion_auth->update_user($id, $data);
Use
$this->ion_auth->update($id, $data);