Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to store the data back into the database #220

Open
SuthakarSivashanth opened this issue May 17, 2023 · 1 comment
Open

Unable to store the data back into the database #220

SuthakarSivashanth opened this issue May 17, 2023 · 1 comment

Comments

@SuthakarSivashanth
Copy link

SuthakarSivashanth commented May 17, 2023

I extended profile page (@vendor/amnah/yii2-user/views/default/profile.php) with some new fields (Ex. Country name, City name). While I am able to fetch the data from the database, I am unable to store the data back into the database. What can I do?

@amnah
Copy link
Owner

amnah commented May 17, 2023

hmm my initial thought is that you need to add the corresponding rules so that they can be validated and safely stored

https://github.com/amnah/yii2-user/blob/master/models/Profile.php#L37-L46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants