index.php 272 Bytes
Newer Older
Alexander Makarov committed
1
<?php
Alexander Makarov committed
2
define('YII_DEBUG', true);
3

Alexander Makarov committed
4 5 6
$yii = __DIR__.'/../framework/yii.php';
require $yii;
$config = require dirname(__DIR__).'/protected/config/main.php';
7

Alexander Makarov committed
8 9 10
$basePath = dirname(__DIR__).'/protected';
$app = new \yii\web\Application('webapp', $basePath, $config);
$app->run();