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

Part III. 程序开发者篇

Table of Contents

11. 字符集编码
字符集编码
12. 常量
SMARTY_DIR
13. Smarty成员变量
$allow_php_templates
$auto_literal
$autoload_filters
$cache_dir
$cache_id
$cache_lifetime
$cache_locking
$cache_modified_check
$caching
$caching_type
$compile_check
$compile_dir
$compile_id
$compile_locking
$compiler_class
$config_booleanize
$config_dir
$config_overwrite
$config_read_hidden
$debug_tpl
$debugging
$debugging_ctrl
$default_config_type
$default_modifiers
$default_resource_type
$default_config_handler_func
$default_template_handler_func
$direct_access_security
$error_reporting
$escape_html
$force_cache
$force_compile
$left_delimiter
$locking_timeout
$merge_compiled_includes
$php_handling
$plugins_dir
$right_delimiter
$smarty_debug_id
$template_dir
$trusted_dir
$use_include_path
$use_sub_dirs
14. Smarty成员方法
addConfigDir() — 增加一个配置文件目录
addPluginsDir() — 增加一个插件目录
addTemplateDir() — 增加一个模板文件目录
append() — 把值追加到数组。
appendByRef() — 引用追加
assign() — 赋值
assignByRef() — 引用赋值
clearAllAssign() — 清除全部赋值
clearAllCache() — 清除全部缓存
clearAssign() — 清除赋值
clearCache() — 清除缓存
clearCompiledTemplate() — 清除模板编译文件
clearConfig() — 清除配置
compileAllConfig() — 编译全部配置文件
compileAllTemplates() — 编译全部模板
configLoad() — 载入预配置的变量
createData() — 创建数据对象
createTemplate() — 创建模板对象
disableSecurity() — 关闭安全检查
display() — 显示
enableSecurity() — 开启安全检查
fetch() — 取得输出内容
getCacheDir() — 取得缓存目录
getCompileDir() — 取得编译目录
getConfigDir() — 取得配置文件目录
getConfigVars() — 取得预配置变量
getPluginsDir() — 取得插件目录
getRegisteredObject() — 获取已注册对象
getTags() — 取得模板标签
getTemplateDir() — 取得模板目录
getTemplateVars() — 取得变量值
isCached() — 检查模板是否已经缓存
loadFilter() — 载入过滤插件
Smarty::muteExpectedErrors() — 忽略脚本警告信息
registerCacheResource() — 注册缓存资源
registerClass() — 注册类
registerDefaultPluginHandler() — 注册默认插件处理器
registerFilter() — 注册过滤器
registerPlugin() — 注册插件
registerObject() — 注册对象
registerResource() — 注册资源
setCacheDir() — 设置缓存目录
setCompileDir() — 设置编译目录
setConfigDir() — 设置配置目录
setPluginsDir() — 设置插件目录
setTemplateDir() — 设置模板目录
templateExists() — 检查模板是否存在
unregisterCacheResource() — 注销缓存资源
unregisterFilter() — 注销过滤器
unregisterPlugin — 注销插件
unregisterObject() — 注销对象
unregisterResource() — 注销资源
testInstall() — 测试Smarty安装
15. 缓存
配置缓存时间
单页多个缓存
缓存组
控制输出缓存
模板区域缓存控制
标签的缓存控制
变量的缓存控制
插件的缓存控制
自定义缓存实现
16. 资源
文件资源
$template_dir目录
特定的$template_dir
任意目录的模板
Windows文件路径
字符串资源
数据流资源
扩展模板资源
自定义模板资源
17. 高级特性
安全
修改模板设置
模板继承
数据流
对象
静态类
前置过滤器
后置过滤器
输出过滤器
18. 以插件扩展Smarty
插件如何工作
命名规则
编写插件
模板函数
修饰器
块函数
编译函数
前置/后置过滤器
输出过滤器
资源插件
插入插件
19. SmartyBC - 向前兼容的类库
SmartyBC 类
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 6 plus 7? (Are you human?)

Advertisement