Get Smarty

Donate

Donate Bitcoin Bitcoin
Paypal

Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Sites Using Smarty

Buy cheap eyeglasses from Cheapglasses123.com and save up to 80%.

Buy prescription glasses from www.australiaglasses.com and save.

Cheap Glasses Now On Sale at GlassesPeople.com. Starts At $7.95.

Where to buy discount wedding dresses and cheap smart dresses free shipping - Weddingdresstrend.com

Brautkleider auf Topwedding.de

Find free files to download on allwhatyouwant.net

Looking For Affordable Wedding Dresses 2015 at Best Prices On TDBridal.com

Shop high quality cheap prom dresses on Dresswe.co.uk

Buy New Arrival Cheap Prom Dresses 2015 at JDBRIDAL Prom Dress Store

Advertisement

Chapter 10. 调试控制�

Smarty包�了一个调试控制�。控制��以�供当�模�的 包�模�� 赋值��� �置��等信�。 Smarty文件夹内有个�debug.tpl的模�,是控制�使用的输出模�。

Smarty中开�调试控制�的方法是设置 $debugging 为TRUE。如果你需�自定义调试控制�模�请设置 $debug_tpl指� debug.tpl模� (默认在 SMARTY_DIR目录)。 当你打开页�,将会打开一个Javascript窗�,显示了当�模�包�的�模��称�赋值��等内容。

如果需�显示特定模�的��,请�� {debug}函数。 �关闭调试控制器,�以设置 $debugging为 FALSE。 你也�以通过打开 $debugging_ctrl 而且在URL地�附加上SMARTY_DEBUG�暂时性开�调试控制�, .

技术说明

当你使用fetch() 时,调试控制器将�会出现,�有当使用了 display()�会打开控制�窗�。 程�会在当�模�中加入一系列的javascript代�以开�窗�, 如果你�喜欢javascript,你�以对debug.tpl模�进行修改。 调试信��会被缓存,而且debug.tpl模�本身的信��会显示在控制�里。

Note

�个模�和�置文件的载入都是以秒�计算的,甚至是以几分之一秒。

�� 疑难解答.

Comments
No comments for this page.
Post a Comment
All comments are moderated. Support questions are ignored, use the forums instead.
Author:
Email: (not shown)
What is 4 plus 3? (Are you human?)

Advertisement