Commit aad6d7d9 by Qiang Xue

refactoring.

parent 2387e59c
<?php <?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); defined('YII_DEBUG') or define('YII_DEBUG', true);
$frameworkPath = __DIR__ . '/../../framework/'; $frameworkPath = __DIR__ . '/../../framework';
require($frameworkPath . 'Yii.php');
$config = require(__DIR__ . '/protected/config/main.php');
$application = new yii\web\Application($config);
require($frameworkPath . '/Yii.php');
// Register Composer autoloader // 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(); $application->run();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment