I just want to ask how can I remove the Yii Debugger in the footer ?
Thank you in advance.
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' => ['127.0.0.1'],
];
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.
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
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