Skip to content

Instantly share code, notes, and snippets.

@beshur
Created March 19, 2014 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beshur/9638716 to your computer and use it in GitHub Desktop.
Save beshur/9638716 to your computer and use it in GitHub Desktop.
php Yii attributeLabels example
<?php
class Profile extends CActiveRecord
{
public function attributeLabels()
{
return array(
'id' => Yii::t('model', 118),
'from' => Yii::t('model', 119),
'email' => Yii::t('model', 120),
'user_id' => Yii::t('model', 121),
'address' => Yii::t('model', 122),
'company' => Yii::t('model', 113),
'position' => Yii::t('model', 114),
'telephone' => Yii::t('model', 123),
'last_name' => Yii::t('model', 124),
'first_name' => Yii::t('model', 125),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment