index.php 408 Bytes
Newer Older
Qiang Xue committed
1
<?php
2

Qiang Xue committed
3
// comment out the following line to disable debug mode
Qiang Xue committed
4 5
defined('YII_DEBUG') or define('YII_DEBUG', true);

Qiang Xue committed
6
$frameworkPath = __DIR__ . '/../../yii';
7

Qiang Xue committed
8
require($frameworkPath . '/Yii.php');
9
// Register Composer autoloader
Qiang Xue committed
10
@include($frameworkPath . '/vendor/autoload.php');
11

Qiang Xue committed
12 13
$config = require(__DIR__ . '/protected/config/main.php');
$application = new yii\web\Application($config);
Qiang Xue committed
14
$application->run();