I am trying to connect the debug panel on the advanced browsing template on the Internet, which did not give anything other than this.
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'] = ['*']; } for basic and this
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'] = ['*']; } but I didn’t understand where to connect if in config / main / php just a white screen falls out. Do not tell me how to connect debug and gii if the site is hosted on the server.
config/web.phpbelow beforereturn $config;......., in advancedbackend/config/main-local.phpandfrontend/config/main-local.phpbeforereturn $config;- Alexey Shimansky