Alexander Makarov
12 years ago
5 changed files with 7 additions and 22 deletions
@ -1,9 +1,14 @@
|
||||
<?php |
||||
|
||||
// Set to false to disable debug mode |
||||
defined('YII_DEBUG') or define('YII_DEBUG', true); |
||||
|
||||
require(__DIR__ . '/../../framework/yii.php'); |
||||
$frameworkPath = __DIR__ . '/../../framework/'; |
||||
require($frameworkPath . 'yii.php'); |
||||
|
||||
$config = require(__DIR__ . '/protected/config/main.php'); |
||||
$application = new yii\web\Application($config); |
||||
|
||||
// Register Composer autoloader |
||||
@include $frameworkPath . '/vendor/autoload.php'; |
||||
|
||||
$application->run(); |
||||
|
Loading…
Reference in new issue