index.php 479 Bytes
Newer Older
1 2 3 4
<?php

// comment out the following line to disable debug mode
defined('YII_DEBUG') or define('YII_DEBUG', true);
5
defined('YII_ENV') or define('YII_ENV', 'dev');
6

7
require(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php');
8
require(__DIR__ . '/../vendor/autoload.php');
Qiang Xue committed
9
Yii::importNamespaces(require(__DIR__ . '/../vendor/composer/autoload_namespaces.php'));
10

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

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