code: public function actionIndex()
  		{
  			$profile = Profile::findOne(['uid' => Yii::$app->user->id]);
  
  			if ($profile == NULL)
  				throw new NotFoundHttpException;
  
  			return $this->render('index', ['profile' => $profile]);
  		}
docs: Shows user's profile.
  
  @return \yii\web\Response
  @throws \yii\web\NotFoundHttpException