Пытаюсь подключить debug панель на шаблоне advanced просмотр интренета ни чего не дал кроме как вот этого
if (YII_ENV_DEV) {
// configuration adjustments for 'dev' environment
$config['bootstrap'][] = 'debug';
$config['modules']['debug']['class'] = 'yii\debug\Module';
$config['modules']['debug']['allowedIPs'] = ['*'];
$config['bootstrap'][] = 'gii';
$config['modules']['gii']['class'] = 'yii\gii\Module';
$config['modules']['gii']['allowedIPs'] = ['*'];
}
для basic и вот этого
if (!YII_ENV_TEST) {
// configuration adjustments for 'dev' environment
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = [
'class' => 'yii\debug\Module',
];
$config['modules']['debug']['allowedIPs'] = ['*'];
$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
];
$config['modules']['gii']['allowedIPs'] = ['*'];
}
но куда подключать я так и не понял если в config/main/php выпадает просто белый экран. Не подскажете как подключить debug и gii если сайт выложен на сервере.
config/web.php
внизу передreturn $config;
......., у advanced вbackend/config/main-local.php
иfrontend/config/main-local.php
передreturn $config;