index.php 478 B

1234567891011121314
  1. <?php
  2. // comment out the following two lines when deployed to production
  3. defined('YII_DEBUG') or define('YII_DEBUG', true);
  4. defined('YII_ENV') or define('YII_ENV', 'dev');
  5. defined('ROOT_DIR') or define('ROOT_DIR', __DIR__);
  6. defined('BASE_DIR') or define('BASE_DIR', __DIR__.'/../');
  7. require __DIR__ . '/../vendor/autoload.php';
  8. require __DIR__ . '/../vendor/yiisoft/yii2/Yii.php';
  9. $config = require __DIR__ . '/../config/web.php';
  10. (new yii\web\Application($config))->run();