function _encrypt($field) { $pass_key = "[removed]"; // Don't encrypt an empty string if (!empty($this->{$field})) { $this->load->library('encrypt'); $this->{$field} = $this->encrypt->encode($this->{$field}, $pass_key); } }
Quote:Fatal error: Call to a member function encode() on a non-object in /[path to application dir]/models/user.php on line 97
$this->{$field} = $this->encrypt->encode($this->{$field}, $pass_key);