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