UserSearch.php
public function attributeLabels()
    {
        $attributeLabels = parent::attributeLabels();
        $attributeLabels['id'] = Yii::t('user', 'User ID');
        $attributeLabels['nickname'] = Yii::t('user', 'Nickname');
        $attributeLabels['first_name'] = Yii::t('user', 'First Name');
        $attributeLabels['last_name'] = Yii::t('user', 'Last Name');
        $attributeLabels['gf'] = Yii::t('user', 'Gender');
        $attributeLabels['createdFrom'] = Yii::t('user', 'From');
        $attributeLabels['createdTo'] = Yii::t('user', 'To');
        return $attributeLabels;
    }
public function attributeLabels()
    {
        $attributeLabels = parent::attributeLabels();
        $attributeLabels['id'] = Yii::t('user', 'User ID');
        $attributeLabels['nickname'] = Yii::t('user', 'Nickname');
        $attributeLabels['first_name'] = Yii::t('user', 'First Name');
        $attributeLabels['last_name'] = Yii::t('user', 'Last Name');
        $attributeLabels['gf'] = Yii::t('user', 'Gender');
        $attributeLabels['createdFrom'] = Yii::t('user', 'From');
        $attributeLabels['createdTo'] = Yii::t('user', 'To');
        return $attributeLabels;
    }
public function attributeLabels ( ) { $ attributeLabels = parent :: attributeLabels ( ) ; $ attributeLabels [ 'id' ] = Yii :: t ( 'user' , 'User ID' ) ; $ attributeLabels [ 'nickname' ] = Yii :: t ( 'user' , 'Nickname' ) ; $ attributeLabels [ 'first_name' ] = Yii :: t ( 'user' , 'First Name' ) ; $ attributeLabels [ 'last_name' ] = Yii :: t ( 'user' , 'Last Name' ) ; $ attributeLabels [ 'gf' ] = Yii :: t ( 'user' , 'Gender' ) ; $ attributeLabels [ 'createdFrom' ] = Yii :: t ( 'user' , 'From' ) ; $ attributeLabels [ 'createdTo' ] = Yii :: t ( 'user' , 'To' ) ; return $ attributeLabels ; }
Add `createdFrom` & `createdTo` attributes.
@return array
Add createdFrom & createdTo attributes .