Beispiel #1
0
 public function actionIndex()
 {
     if (!Yii::$app->user->identity) {
         return $this->goHome();
     }
     $profile = new Profile();
     $this->_profile = $profile->getProfile();
     /*if(Yii::$app->user->identity->status == User::STATUS_WAIT){
           return $this->goHome();
       } else*/
     if (Yii::$app->user->identity->status == User::STATUS_BLOCKED) {
         return $this->goHome();
     }
     \Yii::$app->view->registerMetaTag(['name' => 'description', 'content' => '']);
     return $this->render('index', ['model' => $this->findModel(), '_profile' => $this->_profile]);
 }
 public function actionIndex()
 {
     $model = Profile::getProfile();
     return $this->render('index', ['model' => $model]);
 }