/** * Lists all User models. * @return mixed */ public function actionIndex() { $searchModel = new UserSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); /* return $this->render('index', [ 'searchModel' => $searchModel, 'dataProvider' => $dataProvider, ]); */ return $this->render('view', ['model' => $this->findModel(Yii::$app->user->id)]); }
/** * Lists all User models. * @return mixed */ public function actionIndex() { $searchModel = new UserSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', ['searchModel' => $searchModel, 'dataProvider' => $dataProvider]); }