$mediaFileUrl2 = Yii::$app->request->hostInfo . USER_PROFILE_PATH. $model->profile_photo; for displaying image code example
Example: yii2 get value from params
$value = Yii::$app->params['nameParameter'];
$value = Yii::$app->params['nameParameter'];