PHP-Yii2 how to set dynamic values in params
<p>I need to set dynamic value in params.php. </p>

<p><strong>For example:</strong><br>
<code>'MainUrl' =&gt; Yii::$app-&gt;request-&gt;hostInfo.'web/images'</code>. </p>

<p>How to set dynamic  values in params.php and  params-local.php? </p>