Welcome Guest, Not a member yet? Register   Sign In
Spelling Error in Models
#1

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
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#2

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




Theme © iAndrew 2016 - Forum software by © MyBB