Get Smarty


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 glasses from and save up to 80%.

Where to buy prescription glasses? is your best choice!

Visit for cheap soccer cleats, sneakers and Soccer Jerseys updates



设置开启调试信息的方式。 设置成NONE则不开启调试信息。 URL值意味着当URL参数中有SMARTY_DEBUG关键字则开启调试信息。 如果开启了 $debugging,则本设置将忽略。

Example 13.3. 在localhost上的$debugging_ctrl

// 只在localhost的地址上面显示调试控制台
// 地址:http://localhost/script.php?foo=bar&SMARTY_DEBUG
$smarty->debugging = false; // 默认
$smarty->debugging_ctrl = ($_SERVER['SERVER_NAME'] == 'localhost') ? 'URL' : 'NONE';

参见 调试控制台$debugging$smarty_debug_id.

No comments for this page.