【问题标题】:smarty Debugging Consolesmarty 调试控制台
【发布时间】:2010-01-25 11:21:20
【问题描述】:

如何查看不在弹出窗口中的调试控制台? 喜欢在同一个窗口。 有什么想法吗?

【问题讨论】:

  • {debug output="html"}

标签: php smarty


【解决方案1】:

更改调试模板文件debug.tpl。只需将以下代码替换为更适合您需要的代码:

# _smarty_console.document.write('{$debug_output|escape:'javascript'}');
## write debug window directly in current document
document.write('{$debug_output|escape:'javascript'}');`

【讨论】:

  • 一点补充,debug.tpl可以在Smarty根目录下找到。
【解决方案2】:

您可以使用 Firebug 和 FirePHP 将调试信息重定向到 Firebig 控制台:http://www.firephp.org/Wiki/Libraries/Smarty

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-08-05
    • 2017-11-23
    • 2023-03-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多