nenad-zivkovic/yii2-advanced-template

Need to add profile fields

Closed this issue · 1 comments

I would like to add additional fields or a new table for user profile information, not sure which is the best yet. I have searched many examples of how to do it but they all seem to be based on specific versions of yii2-user and rbac
What version of user/rbac is being used in yii2-advanced-template ?
How would you suggest additional profile fields be added ?

Thanks

User/rbac is custom crafted, and based on what framework is providing. Third party modules/packages are not used.

When I want to create user profiles ( Name, address, stuff like that ), I create new table called user_profile that is related with user. Then you create controller/model/views for that. If you want to connect user profile data with articles, then you create linking table like article_profile. You craft it by you needs. So I wouldn't add profile fields to user table, but create table just for that, its kinda better design.