Open dimgolsh opened 5 years ago
Bag in $config['bootstrap'][] = 'debug'; Work, if comment debug
if (YII_ENV_DEV) {
// configuration adjustments for 'dev' environment
// $config['bootstrap'][] = 'debug';
$config['modules']['debug'] = [
'class' => 'yii\debug\Module',
// uncomment the following to add your IP if you are not connecting from localhost.
//'allowedIPs' => ['127.0.0.1', '::1'],
];
Temporal fix:
public function beforeAction($action) {
\yii\base\Event::off('*', '*');
return parent::beforeAction($action);
}
I would suggest not to disable all events, but to disable only "Event Panel" in debug panel.
$config['modules']['debug'] = [
'class' => 'yii\debug\Module',
'panels'=>[
'event'=>false,
]
];
I use example, but return empty page
perhaps the page does not return if to output a variable $event->data , it contains the page code