How can I disable yii-debug-toolbar on a specific view?

后端 未结 8 1408
你的背包
你的背包 2021-02-02 12:58

How can I disable yii-debug-toolbar on a specific view especially on partial rendered views?

Is this possible?

p.s. Yii-debug-toolbar

相关标签:
8条回答
  • 2021-02-02 13:46

    Remove this from config/web.php

    $config['bootstrap'][] = 'debug';
    $config['modules']['debug'] = 'yii\debug\Module';
    
    0 讨论(0)
  • 2021-02-02 13:50

    If you don't wan to show the log, you can hide the yii-debug console using jQuery

       $('#ydtb-toolbar').hide();
    

    Call this snippet on your views.

    0 讨论(0)
提交回复
热议问题