What is Smarty?
Why use it?
Use Cases and Work Flow
Syntax Comparison
Template Inheritance
Best Practices
Crash Course
You may use the Smarty logo according to the trademark notice.
For sponsorship, advertising, news or other inquiries, contact us at:
设置开启调试信息的方式。
设置成NONE则不开启调试信息。
URL值意味着当URL参数中有SMARTY_DEBUG关键字则开启调试信息。
如果开启了
$debugging,则本设置将忽略。
Example 13.3. 在localhost上的$debugging_ctrl
<?php // 只在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.