|
|
|
|
|
|
|
|
|
|
|
|
|
|
$server_name = $_SERVER['SERVER_NAME'] ; |
|
|
$server_name = $_SERVER['SERVER_NAME'] ; |
|
|
Yii::setAlias('@domainName', (YII_ENV === 'dev') ? (($server_name == 'localhost') ? 'localhost' : 'laboiteapain-dev.net') : 'laboiteapain.net'); |
|
|
Yii::setAlias('@domainName', (YII_ENV === 'dev') ? (($server_name == 'localhost') ? 'localhost' : 'laboiteapain-dev.net') : 'laboiteapain.net'); |
|
|
Yii::setAlias('@baseUrl', ($server_name == 'localhost') ? '/laboiteapain/' : '/'); |
|
|
|
|
|
|
|
|
Yii::setAlias('@baseUrl', ($server_name == 'localhost') ? '/distrib/' : '/'); |
|
|
Yii::setAlias('@baseUrlFrontend', (($server_name == 'localhost') ? '/frontend/web' : '')); |
|
|
Yii::setAlias('@baseUrlFrontend', (($server_name == 'localhost') ? '/frontend/web' : '')); |
|
|
Yii::setAlias('@baseUrlBackend', (($server_name == 'localhost') ? '/backend/web' : '')); |
|
|
Yii::setAlias('@baseUrlBackend', (($server_name == 'localhost') ? '/backend/web' : '')); |
|
|
Yii::setAlias('@baseUrlProducer', (($server_name == 'localhost') ? '/producer/web' : '')); |
|
|
Yii::setAlias('@baseUrlProducer', (($server_name == 'localhost') ? '/producer/web' : '')); |