|
123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- $params = array_merge(
- require(__DIR__ . '/../../common/config/params.php'),
- require(__DIR__ . '/../../common/config/params-local.php'),
- require(__DIR__ . '/params.php'),
- require(__DIR__ . '/params-local.php')
- );
-
- $common_config_main = array_merge(require(__DIR__ . '/../../common/config/main.php'));
-
- return [
- 'id' => 'app-frontend',
- 'basePath' => dirname(__DIR__),
- 'bootstrap' => ['log'],
- 'controllerNamespace' => 'frontend\controllers',
- 'components' => [
- 'log' => [
- 'traceLevel' => YII_DEBUG ? 3 : 0,
- 'targets' => [
- [
- 'class' => 'yii\log\FileTarget',
- 'levels' => ['error', 'warning'],
- ],
- ],
- ],
- 'errorHandler' => [
- 'errorAction' => 'site/error',
- ],
- 'assetManager' => [
- 'bundles' => [
- 'yii\web\JqueryAsset' => [
- 'sourcePath' => null, // do not publish the bundle
- 'js' => [
- 'https://code.jquery.com/jquery-1.11.2.min.js'
- ]
- ],
- ],
- ],
- 'view' => [
- 'class' => 'common\components\MyView',
- ],
- 'urlManager' => $common_config_main['components']['urlManagerFrontend'],
- ],
- 'params' => $params,
- ];
|