Alexander Makarov
12 years ago
1 changed files with 7 additions and 5 deletions
@ -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'; |
||||||
$config=__DIR__.'/protected/config/main.php'; |
require $yii; |
||||||
|
$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(); |
Loading…
Reference in new issue