Alexander Makarov
12 years ago
1 changed files with 7 additions and 5 deletions
@ -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(); |
Loading…
Reference in new issue