Browse Source

adjusted basic app to use the new yii extension installer.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
de59556d2d
  1. 3
      apps/basic/config/console.php
  2. 1
      apps/basic/config/web.php
  3. 1
      apps/basic/web/index-test.php
  4. 1
      apps/basic/web/index.php
  5. 1
      apps/basic/yii

3
apps/basic/config/console.php

@ -6,8 +6,7 @@ return [
'preload' => ['log'],
'controllerPath' => dirname(__DIR__) . '/commands',
'controllerNamespace' => 'app\commands',
'modules' => [
],
'extensions' => require(__DIR__ . '/../vendor/yii-extensions.php'),
'components' => [
'cache' => [
'class' => 'yii\caching\FileCache',

1
apps/basic/config/web.php

@ -3,6 +3,7 @@ $params = require(__DIR__ . '/params.php');
$config = [
'id' => 'bootstrap',
'basePath' => dirname(__DIR__),
'extensions' => require(__DIR__ . '/../vendor/yii-extensions.php'),
'components' => [
'request' => [
'enableCsrfValidation' => true,

1
apps/basic/web/index-test.php

@ -10,7 +10,6 @@ defined('YII_ENV') or define('YII_ENV', 'test');
require_once(__DIR__ . '/../vendor/autoload.php');
require_once(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php');
Yii::importNamespaces(require(__DIR__ . '/../vendor/composer/autoload_namespaces.php'));
$config = require(__DIR__ . '/../config/web-test.php');

1
apps/basic/web/index.php

@ -6,7 +6,6 @@ defined('YII_ENV') or define('YII_ENV', 'dev');
require(__DIR__ . '/../vendor/autoload.php');
require(__DIR__ . '/../vendor/yiisoft/yii2/yii/Yii.php');
Yii::importNamespaces(require(__DIR__ . '/../vendor/composer/autoload_namespaces.php'));
$config = require(__DIR__ . '/../config/web.php');

1
apps/basic/yii

@ -15,7 +15,6 @@ defined('STDIN') or define('STDIN', fopen('php://stdin', 'r'));
require(__DIR__ . '/vendor/autoload.php');
require(__DIR__ . '/vendor/yiisoft/yii2/yii/Yii.php');
Yii::importNamespaces(require(__DIR__ . '/vendor/composer/autoload_namespaces.php'));
$config = require(__DIR__ . '/config/console.php');

Loading…
Cancel
Save