// 'dsn' => 'mysql:host="бла бла.ком";dbname=tor',
// 'username' => 'tor',
// 'password' => '',
// 'charset' => 'utf8',
'dsn' => 'mysql:host=127.0.0.1;dbname=tor',
'username' => 'root',
'password' => '',
'charset' => 'utf8',
echo \kartik\widgets\FileInput::widget([
'name' => 'attachment',
'pluginOptions' => [
'showPreview' => false,
'showCaption' => true,
'showRemove' => true,
'showUpload' => true,
'uploadUrl' => \yii\helpers\Url::to(['/report/report-upload'])
]
]);
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = 'yii\debug\Module';
$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
'allowedIPs' => ['Ваш IP']