How to remove Yii Debugger in footer

I just want to ask how can I remove the Yii Debugger in the footer ?

Thank you in advance.

Open up your config/main-local.php file and remove the following code if you want to completely remove it (code may vary a bit):

    // configuration adjustments for 'dev' environment

    $config['bootstrap'][] = 'debug';

    $config['modules']['debug'] = [

        'class' => 'yii\debug\Module',

        'allowedIPs' => [''],


It should be noted, that if you’re trying to deploy your website live, you should instead change your application to a production environment, and the debug toolbar will be automatically removed.

1 Like

Thanks. It’s been a great experience with Yii although I’ve been trying to learn more about it

How do I change it to production environment ?

Thank you in advance

1 Like

Thanks for the info. You have done great work communicating your message. Keep up the good work…

many thanks

php init --env=Production --overwrite=n