<?php if (class_exists('yii\\debug\\Module')) { $this->off(\yii\web\View::EVENT_END_BODY, [\yii\debug\Module::getInstance(), 'renderToolbar']); } /* @var $this \yii\web\View */ /* @var $content string */ use yii\helpers\Html; use yii\bootstrap\Nav; use yii\bootstrap\NavBar; use yii\widgets\Breadcrumbs; use app\assets\AppAsset; AppAsset::register($this); $this->beginPage(); ?> <!DOCTYPE html> <html lang="<?php echo Yii::$app->language; ?> "> <head> <meta charset="<?php echo Yii::$app->charset; ?> "> <meta name="viewport" content="width=device-width, initial-scale=1"> <?php echo Html::csrfMetaTags(); ?> <title><?php echo Html::encode($this->title);
// 'allowedIPs' => ['*.*.*.*'], // 'historySize' => 20, // 'panels' => [ // // 'mongodb' => [ // // 'class' => 'yii\mongodb\debug\MongoDbPanel', // // ], // ], // 'on beforeAction' => function($event) { // Yii::$app->getResponse()->format = 'html'; // Yii::$app->getView()->off('endBody', [ // $event->sender, // 'renderToolbar' // ]); // } // ]; $config['on beforeAction'] = function ($event) { Yii::$app->getView()->off('endBody', [\yii\debug\Module::getInstance(), 'renderToolbar']); }; function _debug($var, $tags = null) { if (PhpConsole\Connector::getInstance()->isActiveClient()) { PhpConsole\Connector::getInstance()->getDebugDispatcher()->dispatchDebug($var, $tags, 1); } } } else { function _debug($var, $tags = null) { // nothing } } return $config;