Video tutorial: hide Yii Debugger and Gii in Yii Framework version 2

Hi guys! In this tutorial I will explain to you how you can disable/hide the Yii Debugger toolbar and Gii in Yii Framework version 2.

Yii Debugger displays various debug information about the current request/response and when clicked, display more details about the panel's content. After you have finished your website, you must disable Yii Debugger and Gii.

To disable Yii Debugger and Gii, open your config/web.php file and remove this code:

if (YII_ENV_DEV) {
// configuration adjustments for 'dev' environment
$config['bootstrap'][] = 'debug';
$config['modules']['debug'] = 'yii\debug\Module';

$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = 'yii\gii\Module';
}

I have created also a video tutorial, where you can see the results of this action:









Leave a Comment