diff --git a/common/models/User.php b/common/models/User.php index 0443847..189c139 100755 --- a/common/models/User.php +++ b/common/models/User.php @@ -337,21 +337,19 @@ { return true; } - public function getCompanyInfo(){ - return $this->hasOne(CompanyInfo::className(), ['user_id' => 'id']); - } - public function getLiveTime(){ + public function getCompanyInfo() + { + return $this->hasOne(CompanyInfo::className(), [ 'user_id' => 'id' ]); + } - $now = new \DateTime('now'); - $date1 = new \DateTime(date ('Y-m-d H:i:s',$this->created_at)); - return \Yii::$app->formatter->asRelativeTime($date1->diff($now)); - } + public function getLiveTime() + { - public function getIsPerformer() - { - return true; - } + $now = new \DateTime('now'); + $date1 = new \DateTime(date('Y-m-d H:i:s', $this->created_at)); + return \Yii::$app->formatter->asRelativeTime($date1->diff($now)); + } public function getIsCustomer() { diff --git a/frontend/views/accounts/team.php b/frontend/views/accounts/team.php index 4f169bb..7cfb8a4 100644 --- a/frontend/views/accounts/team.php +++ b/frontend/views/accounts/team.php @@ -43,7 +43,7 @@ 'value' => function($model, $key, $index, $column) { return \Yii::$app->formatter->asDate(time(), 'yyyy') - $model->experience_from; }, - 'label' => 'Опыл, лет', + 'label' => 'Опыт, лет', ], 'team_id', 'user_id', -- libgit2 0.21.4