• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.