Skip to content
Advertisement

CakePHP4 Edit doesnt update record

Version: 4.2.9

My edit view is populating my inputs with the data, but when I change them and click on save, its not saving but giving me “user has been saved” message.

UsersController.php edit function

JavaScript

my edit.php

JavaScript

Advertisement

Answer

Your update code is not complete, you have omitted the patchEntity method.

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement