Php Ion Auth update_user()不更新用户

Php Ion Auth update_user()不更新用户,php,codeigniter,authentication,ion-auth,Php,Codeigniter,Authentication,Ion Auth,我正在尝试使用update_user函数更新用户。但我有这个错误 致命错误:未捕获异常“exception”,消息为“调用了\u auth::update\u user()上未定义的方法” 我的代码是 $id = 8; $data = array( 'first_name' => 'Ben', 'last_name' => 'Edmunds', ); $this->ion_auth->update_user($id, $data);

我正在尝试使用update_user函数更新用户。但我有这个错误

致命错误:未捕获异常“exception”,消息为“调用了\u auth::update\u user()上未定义的方法”

我的代码是

$id = 8;
$data = array(
     'first_name' => 'Ben',
     'last_name' => 'Edmunds',

      );
$this->ion_auth->update_user($id, $data); 

我找到了答案。问题是作者没有更新用户指南。因此,我必须通过代码找到解决方案。除此之外,此函数不是文档中应该更改的唯一函数。有很多。我希望他能尽快更新

解决方案

而不是

$this->ion_auth->update_user($id, $data); 
使用


您是否100%确定这是生成错误的实际代码?查看错误消息:
on\u auth
。它应该是
ion\u auth
。搜索输入错误。我找到了问题。我想在这里写,但我不允许我写,因为我是一个新成员:),所以我可以写评论。ion_auth的编码者没有更新文档。因此,我们不应该使用update\u user,而应该使用just update。还有很多函数他没有更新文档,但有问题。如果stackoverflow允许,我会写详细的解释
$this->ion_auth->update($id, $data);