I have a Yii2 Advanced application. I am not using Yii translations.
I have a Gii generated ActiveRecord class AddressBook and have set attributeLabels() as follows:
public function attributeLabels()
{
return [
'id' => 'ID',
'user_id' => 'User ID',
'firstname' => 'Firstname',
'lastname' => 'Lastname',
'address' => 'Address',
'address2' => 'Box, Suite, Apt. etc.',
'zipcode' => 'Zip Code',
'city' => 'City',
'zone_id' => 'State',
'country_id' => 'Country',
];
}
The form generated by Gii does not display the labels I have set.
I have yet to modify the form to display drop menus for zone_id and country_id, only got as far as updating the labels.
Any ideas?