Skip to content

Instantly share code, notes, and snippets.

@korniychuk
Created October 30, 2015 18:50
Show Gist options
  • Save korniychuk/4bdeb6aa023eb1794b4c to your computer and use it in GitHub Desktop.
Save korniychuk/4bdeb6aa023eb1794b4c to your computer and use it in GitHub Desktop.
queenmo local frontend index.php
<?php
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php');
require(__DIR__ . '/../common/config/bootstrap.php');
require(__DIR__ . '/../frontend/config/bootstrap.php');
$config = yii\helpers\ArrayHelper::merge(
require(__DIR__ . '/../common/config/main.php'),
require(__DIR__ . '/../common/config/main-local.php'),
require(__DIR__ . '/../frontend/config/main.php'),
require(__DIR__ . '/../frontend/config/main-local.php')
);
$application = new yii\web\Application($config);
$application->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment