hi there
this is my backend\config\main-local.php in development mode:
<?php
$config = [
'components' => [
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => 'HF_B5hRfGvkbnI9vFUquDPuApfewTXBo',
],
],
];
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',
];
}
return $config;
and this is the file in production mode:
n [
'components' => [
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => 'Q3FZVOkWMQsNiILDCpcoxSyDK2cAlcrknMNqpRt36RlicFnkAOjigPjkIsuoGBQClOnHz1oUPumeSfsU16QhX6IHNTUSOspjPk1r',
],
],
];
but in both modes, it returns the errors and shows the code on failure ( check the image)
i change the modes in CLI by runnig init
what should i do? thanks in advance