Skip to content

Instantly share code, notes, and snippets.

@evercode1
Created December 31, 2014 17:06
Show Gist options
  • Select an option

  • Save evercode1/eeb11f33d90c1f5d6455 to your computer and use it in GitHub Desktop.

Select an option

Save evercode1/eeb11f33d90c1f5d6455 to your computer and use it in GitHub Desktop.
Attribute Labels Chapter 5
/* Your model attribute labels */
public function attributeLabels()
{
return [
/* Your other attribute labels */
'roleName' => Yii::t('app', 'Role'),
'statusName' => Yii::t('app', 'Status'),
'profileId' => Yii::t('app', 'Profile'),
'profileLink' => Yii::t('app', 'Profile'),
'userLink' => Yii::t('app', 'User'),
'username' => Yii::t('app', 'User'),
'userTypeName' => Yii::t('app', 'User Type'),
'userTypeId' => Yii::t('app', 'User Type'),
'userIdLink' => Yii::t('app', 'ID'),
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment