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

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

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

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

$application = new yii\web\Application($config);
$application->run();