简体   繁体   English

从cakephp删除调试栏

[英]Removing the debugging bar from cakephp

I am creating a new project in cakephp, I completly customized the view page, but since I am new to cakephp framework unable to understand how to remove the debugging bar given bottom of the page. 我在cakephp中创建了一个新项目,我完全自定义了视图页面,但是由于我是Cakephp框架的新手,因此无法了解如何删除页面底部的调试栏。 I checked and tried every possible things, but not getting. 我检查并尝试了所有可能的方法,但没有成功。 Any suggestion will be appreciated. 任何建议将不胜感激。 I am using cakephp-3.0 我正在使用cakephp-3.0

它不像修改config / app.php并将调试参数更改为false那样简单吗?

'debug' => false 

An alternative. 替代。 On cakephp 3.x, in config/bootstrap.php file, try after : 介绍CakePHP 3.x中,在配置/ bootstrap.php中的文件,尝试

if (Configure::read('debug')) {
    Plugin::load('DebugKit', ['bootstrap' => true]);
}

//add this
Plugin::unload('DebugKit');

sorry for my bad english but i am Brazilian :-) 对不起,我的英语不好,但我是巴西人:-)

转到in app/config文件夹中的core.php文件设置Configure::write('debug', 0);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM