mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-08 08:56:23 +08:00
bootstrap
This commit is contained in:
@ -1,8 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
|
define('YII_DEBUG', true);
|
||||||
|
|
||||||
// change the following paths if necessary
|
$yii = __DIR__.'/../framework/yii.php';
|
||||||
$yii=__DIR__.'/../framework/yii.php';
|
require $yii;
|
||||||
$config=__DIR__.'/protected/config/main.php';
|
$config = require dirname(__DIR__).'/protected/config/main.php';
|
||||||
|
|
||||||
require_once($yii);
|
$basePath = dirname(__DIR__).'/protected';
|
||||||
Yii::createWebApplication($config)->run();
|
$app = new \yii\web\Application('webapp', $basePath, $config);
|
||||||
|
$app->run();
|
||||||
Reference in New Issue
Block a user