Blame view

index.php 541 Bytes
bf807468   Alex Savenko   first commit
1
2
3
4
5
6
7
8
9
10
11
  <?php
  
  // comment out the following two lines when deployed to production
  defined('YII_DEBUG') or define('YII_DEBUG', true);
  defined('YII_ENV') or define('YII_ENV', 'dev');
  
  require(__DIR__ . '/app/vendor/autoload.php');
  require(__DIR__ . '/app/vendor/yiisoft/yii2/Yii.php');
  
  $config = require(__DIR__ . '/app/config/web.php');
  
f4ab266e   Виталий   qwerty
12
13
14
15
  if (file_exists(__DIR__ . '/app/config/main-local.php')) {
      $config = \yii\helpers\ArrayHelper::merge($config, require (__DIR__ . '/app/config/main-local.php'));
  }
  
bf807468   Alex Savenko   first commit
16
  (new yii\web\Application($config))->run();