Мое приложение разработано в CakePHP 3.x.
Я использую плагин CakedDC Users, и он отлично работает, за исключением случаев, когда пользователь хочет изменить свой пароль и нажимает «Отправить».
Допустим, у нас есть ID профиля = 52606b3f-c72d-4485-9c76-3b0f8.
Страница редактирования имеет такой URL-адрес:
локальный/мое_приложение/профиль/52606b3f-c72d-4485-9c76-3b0f8
Страница changePassword имеет такой URL-адрес:
localhost/my_app/users/users/change-password/52606b3f-c72d-4485-9c76-3b0f8
Когда я нажимаю «Отправить», он перенаправляет на страницу профиля, но идентификатор теряется:
локальный/мое_приложение/профиль
и я получаю это сообщение об ошибке:
Запись не найдена в таблице «users» с первичным ключом [NULL]
Я думаю, причина в том, что ID не передается. И не нахожу где и как исправить.
Любая помощь, пожалуйста?