common/config/param.php

return [
    ....
       'frontsite_url' => 'http://local.yii2_myshop.com',
    ...
];

调用

echo Yii::$app->params['frontsite_url'];
京ICP备16046576号-1