Qiang Xue
12 years ago
1 changed files with 6 additions and 7 deletions
@ -1,14 +1,13 @@
|
||||
<?php |
||||
// Set to false to disable debug mode |
||||
// comment out the following line to disable debug mode |
||||
defined('YII_DEBUG') or define('YII_DEBUG', true); |
||||
|
||||
$frameworkPath = __DIR__ . '/../../framework/'; |
||||
require($frameworkPath . 'Yii.php'); |
||||
|
||||
$config = require(__DIR__ . '/protected/config/main.php'); |
||||
$application = new yii\web\Application($config); |
||||
$frameworkPath = __DIR__ . '/../../framework'; |
||||
|
||||
require($frameworkPath . '/Yii.php'); |
||||
// Register Composer autoloader |
||||
@include $frameworkPath . '/vendor/autoload.php'; |
||||
@include($frameworkPath . '/vendor/autoload.php'); |
||||
|
||||
$config = require(__DIR__ . '/protected/config/main.php'); |
||||
$application = new yii\web\Application($config); |
||||
$application->run(); |
||||
|
Loading…
Reference in new issue