mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-10 23:50:38 +08:00
Resolves #674
This commit is contained in:
14
apps/advanced/environments/dev/backend/web/index.php
Normal file
14
apps/advanced/environments/dev/backend/web/index.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
// comment out the following line to disable debug mode
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
|
||||
require(__DIR__ . '/../../vendor/yiisoft/yii2/yii/Yii.php');
|
||||
require(__DIR__ . '/../../vendor/autoload.php');
|
||||
|
||||
$config = yii\helpers\ArrayHelper::merge(
|
||||
require(__DIR__ . '/../config/main.php'),
|
||||
require(__DIR__ . '/../config/main-local.php')
|
||||
);
|
||||
|
||||
$application = new yii\web\Application($config);
|
||||
$application->run();
|
||||
16
apps/advanced/environments/dev/frontend/web/index.php
Normal file
16
apps/advanced/environments/dev/frontend/web/index.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
// comment out the following line to disable debug mode
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', true);
|
||||
|
||||
require(__DIR__ . '/../../vendor/yiisoft/yii2/yii/Yii.php');
|
||||
require(__DIR__ . '/../../vendor/autoload.php');
|
||||
Yii::importNamespaces(require(__DIR__ . '/../../vendor/composer/autoload_namespaces.php'));
|
||||
|
||||
$config = yii\helpers\ArrayHelper::merge(
|
||||
require(__DIR__ . '/../config/main.php'),
|
||||
require(__DIR__ . '/../config/main-local.php')
|
||||
);
|
||||
|
||||
$application = new yii\web\Application($config);
|
||||
$application->run();
|
||||
14
apps/advanced/environments/prod/backend/web/index.php
Normal file
14
apps/advanced/environments/prod/backend/web/index.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
// comment out the following line to disable debug mode
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', false);
|
||||
|
||||
require(__DIR__ . '/../../vendor/yiisoft/yii2/yii/Yii.php');
|
||||
require(__DIR__ . '/../../vendor/autoload.php');
|
||||
|
||||
$config = yii\helpers\ArrayHelper::merge(
|
||||
require(__DIR__ . '/../config/main.php'),
|
||||
require(__DIR__ . '/../config/main-local.php')
|
||||
);
|
||||
|
||||
$application = new yii\web\Application($config);
|
||||
$application->run();
|
||||
16
apps/advanced/environments/prod/frontend/web/index.php
Normal file
16
apps/advanced/environments/prod/frontend/web/index.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
// comment out the following line to disable debug mode
|
||||
defined('YII_DEBUG') or define('YII_DEBUG', false);
|
||||
|
||||
require(__DIR__ . '/../../vendor/yiisoft/yii2/yii/Yii.php');
|
||||
require(__DIR__ . '/../../vendor/autoload.php');
|
||||
Yii::importNamespaces(require(__DIR__ . '/../../vendor/composer/autoload_namespaces.php'));
|
||||
|
||||
$config = yii\helpers\ArrayHelper::merge(
|
||||
require(__DIR__ . '/../config/main.php'),
|
||||
require(__DIR__ . '/../config/main-local.php')
|
||||
);
|
||||
|
||||
$application = new yii\web\Application($config);
|
||||
$application->run();
|
||||
Reference in New Issue
Block a user