yii2 gii alhimik1986 / yii2_crud_module

时间:2016-10-17 06:19:58

标签: php yii2

我尝试安装/// <reference />,但收到此错误:

  

警告:非法字符串偏移&#39;生成器&#39;在   第21行的D:\ wamp64 \ www \ ueb \ backend \ config \ main-local.php(!)致命   错误:不能在第21行的D:\ wamp64 \ www \ ueb \ backend \ config \ main-local.php中将字符串偏移量用作数组

这是我的config \ main-local.php

alhimik1986/yii2_crud_module

请有人帮助我

1 个答案:

答案 0 :(得分:1)

更改此部分:

if (!YII_ENV_TEST) {
    // configuration adjustments for 'dev' environment
    $config['bootstrap'][] = 'debug';
    $config['modules']['debug'] = [
        'class' => 'yii\debug\Module'
    ];

    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = [
        'class' => 'yii\gii\Module'
    ];
}