Alexander Makarov
12 years ago
3 changed files with 12 additions and 7 deletions
@ -1,10 +1,10 @@ |
|||||||
<?php |
<?php |
||||||
define('YII_DEBUG', true); |
define('YII_DEBUG', true); |
||||||
|
|
||||||
$yii = __DIR__.'/../framework/yii.php'; |
require __DIR__.'/../framework/yii.php'; |
||||||
require $yii; |
|
||||||
$config = require dirname(__DIR__).'/protected/config/main.php'; |
$config = require dirname(__DIR__).'/protected/config/main.php'; |
||||||
|
$config['basePath'] = dirname(__DIR__).'/protected'; |
||||||
|
|
||||||
$basePath = dirname(__DIR__).'/protected'; |
$app = new \yii\web\Application($config); |
||||||
$app = new \yii\web\Application('webapp', $basePath, $config); |
|
||||||
$app->run(); |
$app->run(); |
Loading…
Reference in new issue