Answer the question
In order to leave comments, you need to log in
How to change the column header to your own in crud, and not from the database?
I found the grid widget, tried to change it, but I still get errors. How can I change from the English that is indicated in the database to my own version? where to look and what approximately you need to write, as I understand it, no label, no name, nothing like that is suitable
Answer the question
In order to leave comments, you need to log in
1. You can change the label in the model, moreover, gii forms the model with this method:
/**
* @inheritdoc
*/
public function attributeLabels()
{
return [
'id' => 'id',
'email' => Yii::t('text', 'email'),
'username' => Yii::t('text', 'username'),
.....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question