Smarty 下最简单的调试方法 - ○白子○ 的Blog

Smarty 下最简单的调试方法

[ 2009-09-28 21:44:44 | Author: seaboat ]
Font Size: Large | Medium | Small
很简单的一句话,却常常忘记,因此记录一下:
{$var|@debug_print_var}
稍微复杂一点的用法:
{$var|@debug_print_var:2:100}
意思是缩进长度为2个空格,每行最多字数为100。

其他调试方法可以参考这个(日文)
Comments Feed Comments Feed: http://www6.webng.com/seaboat/feed.asp?q=comment&id=763

There is no comment on this article.

Post Comment
Smilies
[smile] [confused] [cool] [cry]
[eek] [angry] [wink] [sweat]
[lol] [stun] [razz] [redface]
[rolleyes] [sad] [yes] [no]
[heart] [star] [music] [idea]
Enable UBB Codes
Auto Convert URL
Show Smilies
Hidden Comment
Username:   Password: