I'm using Codeigniter 4.
And inserting new data like this,
$data = [
'username' => 'darth',
'email' => 'd.vader@theempire.com'
];
$userModel->save($data);
Which is mentioned here: CodeIgniter’s Model reference
It's doing the insertion. But I haven't found any reference about to get the inserted id after insertion.
Please help! Thanks in advance.



所有评论(0)