/**
  * Finds user by id.
  *
  * @return User|null User instance
  */
 protected function getUser()
 {
     if ($this->_user === null) {
         $this->_user = User::find()->where(['id' => Yii::$app->user->identity->id])->active()->one();
     }
     return $this->_user;
 }
 /**
  * Users page.
  */
 function actionIndex()
 {
     $dataProvider = new ActiveDataProvider(['query' => User::find()->active(), 'pagination' => ['pageSize' => $this->module->recordsPerPage]]);
     return $this->render('index', ['dataProvider' => $dataProvider]);
 }