index.php 413 Bytes
Newer Older
Qiang Xue committed
1
<?php
Qiang Xue committed
2
// comment out the following line to disable debug mode
Qiang Xue committed
3 4
defined('YII_DEBUG') or define('YII_DEBUG', true);

Qiang Xue committed
5
$frameworkPath = __DIR__ . '/../../framework';
6

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

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