Removing yii2-Debugging-Symbol

Hi guys,

although being in developpment modus, i intend to remove debugging symbol, which is at bottom right corner of screen(see Screenshot: Application.jpg) I have no idea, where this symbol comes from. Here is code:





[size=3]<?php

[size=3]use yii\helpers\Html;

[size=3]use common\wsl_components\AdminLteAsset;

[size=3]AdminLteAsset::register($this);

[size=3]?>

[size=3]<?php $this->beginPage() ?>

[size=3]<!DOCTYPE html>

[size=3]<html lang="<?= Yii::$app->language ?>">

[size=3]    <head>

[size=3]        <meta charset="<?= Yii::$app->charset ?>"/>

[size=3]        <meta name="viewport" content="width=device-width, initial-scale=1">

[size=3]        <?= Html::csrfMetaTags() ?>

[size=3]        <title><?= Html::encode($this->title) ?></title>

[size=3]        <?php $this->head() ?>

[size=3]    </head>

[size=3]    <body class="hold-transition skin-blue sidebar-mini">

[size=3]        <?php $this->beginBody() ?>

[size=3]        <div class="wrapper">

[size=3]            <?=

[size=3]            $this->render(

[size=3]                    'header.php'

[size=3]            )

[size=3]            ?>

[size=3]            <?=

[size=3]            $this->render(

[size=3]                    'left.php'

[size=3]            )

[size=3]            ?>

[size=3]            <?=

[size=3]            $this->render(

[size=3]                    'content.php', ['content' => $content]

[size=3]            )

[size=3]            ?>

[size=3]        </div>

[size=3]        <?php $this->endBody() ?>

[size=3]    </body>

[size=3]</html>

[size=3]<?php $this->endPage() ?>



[size="2"]Any ideas,how to remove this symbol?[/size]

comment out the debug module in config/web.php remove the following section or comment it out


$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'],

];

The toolbar with debug icon at the bottom of the screen is generated dynamically by yii2-debug module’s javascript. So there’s no way other than disabling the yii2-debug module if you want to remove the debug icon. That’s what @alrazi says implies.

But I would like to recommend that you keep it enabled in the debug mode.

The yii2-debug module is a very convenient tool for developing yii2 web app. Especially useful is the capability that shows all the database queries that are executed in the current page.

For example:

7573

yii-1.png

Clicking on the “DB” button, you’ll see the following:

7574

yii-2.png

So, this debug icon will be removed in RelaseVersion, 'cause I will deactivate debug modus in RelaseVersion of course, but not in development modus,'cause I need debug modus there. Is that correct?

Yes, you are right.

Okay. Thx for both, arazi and softdark.

This thread can be closed as succesfully solved