public function actionIndex()
		{
			$profile = Profile::findOne(['uid' => Yii::$app->user->id]);

			if ($profile == NULL)
				throw new NotFoundHttpException;

			return $this->render('index', ['profile' => $profile]);
		}
public function actionIndex()
		{
			$profile = Profile::findOne(['uid' => Yii::$app->user->id]);

			if ($profile == NULL)
				throw new NotFoundHttpException;

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

@return \yii\web\Response
@throws \yii\web\NotFoundHttpException
Shows user s profile .