CodeIgniter Forums
Spelling Error in Models - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Spelling Error in Models (/showthread.php?tid=70938)



Spelling Error in Models - InsiteFX - 06-19-2018

Using CodeIgniter’s Model

Defining Callbacks


PHP Code:
protected function hashPassword(array $data)
{
 
   if (! isset($data['data']['password']) return $data;

 
   $data['data']['password_hash'] = password_hash($data['data']['password'], PASSWORD_DEFAULT);
 
   unse($data['data']['password']; // <-- SPELLING ERROR unse( should be unset(

 
   return $data;


Thank you


RE: Spelling Error in Models - ciadmin - 06-19-2018

Thanks for pointing this out - the user guide will be amended!