index.php 370 Bytes
Newer Older
1 2
<?php

Qiang Xue committed
3
// comment out the following two lines when deployed to production
4 5
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
6 7

require(__DIR__ . '/../vendor/autoload.php');
Qiang Xue committed
8
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
9

10
$config = require(__DIR__ . '/../config/web.php');
11

Qiang Xue committed
12
(new yii\web\Application($config))->run();