You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
change the expression like this :
....
'usernameField' => ['attribute' => 'username','label' => 'User Name'],
....
it will easy to change the user name label just like the extraColumns.
i used the theme to change the view of assigment. You have to change the code like this in the view.
...
if (is_array($usernameField)){
// usernameField is an array
$userName = $model->{$usernameField['attribute']};
}else{
// usernameField is a string
$userName = $model->{$usernameField};
}
....