index.php 380 Bytes
Newer Older
Qiang Xue committed
1 2
<?php

3
defined('YII_DEBUG') or define('YII_DEBUG', false);
Qiang Xue committed
4

Qiang Xue committed
5
require(__DIR__ . '/protected/vendor/yiisoft/yii2/Yii.php');
Qiang Xue committed
6

Alexander Makarov committed
7
$config = [
8 9 10 11 12 13 14
    'id' => 'benchmark',
    'basePath' => __DIR__ . '/protected',
    'components' => [
        'urlManager' => [
            'enablePrettyUrl' => true,
        ],
    ],
Alexander Makarov committed
15
];
Qiang Xue committed
16 17 18

$application = new yii\web\Application($config);
$application->run();