[ 'request' => [ // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation 'cookieValidationKey' => '3i18DOM7ZDqqQfr2S0hj0c60wFxxTb56', 'parsers' => [ 'application/json' => 'yii\web\JsonParser', ], ], ], ]; if (!YII_ENV_TEST) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = [ 'class' => 'yii\debug\Module', 'allowedIPs' => ['*'], ]; $config['bootstrap'][] = 'zhhHuahuibaoGii'; $config['modules']['zhhHuahuibaoGii'] = [ 'class' => 'yii\gii\Module', 'allowedIPs' => ['*'], ]; } return $config;