Created
December 31, 2014 17:06
-
-
Save evercode1/eeb11f33d90c1f5d6455 to your computer and use it in GitHub Desktop.
Attribute Labels Chapter 5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* 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