phpcms_v9 关闭debug

1 关闭数据库的 debug

    打开项目下面的 caches/configs/database.php 找到 第12行 把 debug的值改为 false

2  关闭 页面的错误信息

    找到 caches/configs/system.php 第34行 把debug的值改为0

     第36行 把errorlog的值改为0

     同时最好把  第20行的 tpl_edit 的值改为0

     找到 phpcms/base.php 第33行

     这一句 pc_base::load_config('system','errorlog') ? set_error_handler('my_error_handler') : error_reporting(E_ERROR | E_WARNING | E_PARSE);

  改成  pc_base::load_config('system','errorlog') ? set_error_handler('my_error_handler') : error_reporting(0);

  这样就可以隐藏phpcms的debug了  在本地开发的话 它默认是 开启debug的

原文地址:https://www.cnblogs.com/jackspider/p/3039664.html