These are chat archives for dektrium/yii2-user

11th
Feb 2016
Negruzzi Cristian
@EndErr
Feb 11 2016 12:43
Using this guide http://yii2-user.dmeroff.ru/docs/adding-new-field-to-user-model i've added a field to registration form. Now in admin mode it can be changed but not in user mode, e.g. if oppening /user/settings/account than the value is not displayed therefore not changing. Where shout changes be made to have that field available and changed by the user on it's will? (попробуя так вопрос)
wizzle
@wizzle
Feb 11 2016 19:31
здравствуйте, как можно из своего контроллера заполучить профиль текущего пользователя?
в админ контроллере это делается через finder
wizzle
@wizzle
Feb 11 2016 19:55
This message was deleted
This message was deleted
\common\models\User::findOne(Yii::$app->user->identity->id)->username
выше писали про username, тоже применимо и к profile
\app\models\User::findOne(Yii::$app->user->identity->id)->profile;