common/config/param.php
return [
....
'frontsite_url' => 'http://local.yii2_myshop.com',
...
];
调用
echo Yii::$app->params['frontsite_url'];
common/config/param.php
return [
....
'frontsite_url' => 'http://local.yii2_myshop.com',
...
];
调用
echo Yii::$app->params['frontsite_url'];