Welcome Guest, Not a member yet? Register   Sign In
You must use the "set" method to update an entry. (Again)
#3

Hello, thx for the answer,

I tried the following:

PHP Code:
$data = ['username' => $username,
            
'first_name' => $first_name,
            
'last_name' => $last_name,
            
'email_address' => $email_address,
            
'password' => $hash,            
            
'activation_token' => $token];    
    
$insert $this->builder->insert($data); 

Resulting in the error: Call to a member function set() on null.

Maybe I have to add the point that the create_user method is part of the UserModel, therefore I thought that with my $this->insert() the method described in the documentation is used: https://codeigniter.com/user_guide/models/model.html

Quote:insert()

An associative array of data is passed into this method as the only parameter to create a new row of data in the database. The array’s keys must match the name of the columns in a $table, while the array’s values are the values to save for that key:
Reply


Messages In This Thread
RE: You must use the "set" method to update an entry. (Again) - by Petrusilius - 10-13-2020, 07:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB