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:
Table of Contents
这里都是Smarty可用的成员变量。 你可以直接存取它们,或者使用相应的setter/getter方法。
全部成员变量都有setter/getter的魔术方法。 和变量格式不一样的是,setter/getter方法都是用驼峰命名法。 例如,你可以使用$smarty->setTemplateDir($dir) 和 $dir = $smarty->getTemplateDir() 来存和取$smarty->template_dir变量。
参见改变模板设置
来了解如何在模板中改变这些变量。