Sfoglia il codice sorgente

Adaptation baseUrl distrib

refactoring
parent
commit
71cda66e3f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      common/config/bootstrap.php

+ 1
- 1
common/config/bootstrap.php Vedi File

@@ -44,7 +44,7 @@ Yii::setAlias('producer', dirname(dirname(__DIR__)) . '/producer');

$server_name = $_SERVER['SERVER_NAME'] ;
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('@baseUrlBackend', (($server_name == 'localhost') ? '/backend/web' : ''));
Yii::setAlias('@baseUrlProducer', (($server_name == 'localhost') ? '/producer/web' : ''));

Loading…
Annulla
Salva