Hello,
Here is my code, when the record is updated, I want to also record the user id.
$user = $this->getUser(); $id = $this->getParameter('id'); $data = $this->database->table('news')->get($id); $data->updated_by = $user->id; $data->update($values);
Thank you
$values['updated_by'] = $user->id; $data->update($values);