bootstrap

This commit is contained in:
Alexander Makarov
2012-12-26 16:20:17 +04:00
parent 7d7ee71d41
commit 5ab4b06b86

View File

@ -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';
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();