Smarty中文手冊下載

發布時間:2015-05-01 23:35:06下載次數:728

I. Getting Started [開始] 1. What is Smarty? [什么是Smaty?] 2. Installation [安裝] Requirements [安裝] Basic Installation [基本安裝] Extended Setup [擴展設置]

I. Getting Started [開始] 

1. What is Smarty? [什么是Smaty?] 

2. Installation [安裝] 

Requirements [安裝] 

Basic Installation [基本安裝] 

Extended Setup [擴展設置] 

II. Smarty For Template Designers [模板設計者篇] 

3. Basic Syntax [基本語法] 

Comments [注釋] 

Functions [函數] 

Attributes [屬性] 

Embedding Vars in Double Quotes [雙引號里值的嵌入] 

Math [數學運算] 

4. Variables [變量] 

Variables assigned from PHP [從PHP分配的變量] 

Variables loaded from config files [從配置文件讀取的變量] 

{$smarty} reserved variable [{$smarty}保留變量] 

5. Variable Modifiers [變量調節器] 

capitalize [首字符大寫] 

count_characters [字符計數] 

cat [連接字符串] 

count_paragraphs [計算段數] 

count_sentences [計算句數] 

count_words [計算詞數] 

date_format [格式化日期] 

default [默認值] 

escape [編碼] 

indent [縮進] 

lower [小寫] 

nl2br [換行符替換成 <br />] 

regex_replace [正則替換] 

replace [替換] 

spacify [插空] 

string_format [字符串格式化] 

strip [去除(多余空格)] 

strip_tags [去除html標簽] 

truncate [截取] 

upper [大寫] 

wordwrap [行寬約束] 

6. Combining Modifiers [組合修改器] 

7. Built-in Functions [內建函數] 

capture 

config_load 

foreach,foreachelse 

include 

include_php 

insert 

if,elseif,else 

ldelim,rdelim 

literal 

php 

section,sectionelse 

strip 

8. Custom Functions [自定義函數] 

assign 

counter 

cycle 

debug 

eval 

fetch 

html_checkboxes 

html_image 

html_options 

html_radios 

html_select_date 

html_select_time 

html_table 

math 

mailto 

popup_init 

popup 

textformat 

9. Config Files [配置文件] 

10. Debugging Console [調試控制臺] 

III. Smarty For Programmers [程序員篇] 

11. Constants [常量] 

SMARTY_DIR [Smarty目錄] 

12. Variables [變量] 

$template_dir [模板目錄變量] 

$compile_dir [編譯目錄變量] 

$config_dir [配置目錄變量] 

$plugins_dir [插件目錄變量] 

$debugging [調試變量] 

$debug_tpl [調試模板] 

$debugging_ctrl [調試控制變量] 

$global_assign [全局配置變量] 

$undefined [未定義變量] 

$autoload_filters [自動加載過濾器變量] 

$compile_check [編譯檢查變量] 

$force_compile [強迫編譯變量] 

$caching [緩存變量] 

$cache_dir [緩存目錄變量] 

$cache_lifetime [緩存生存時間變量] 

$cache_handler_func [緩存處理函數變量] 

$cache_modified_check [緩存修改檢查變量] 

$config_overwrite [配置覆蓋變量] 

$config_booleanize [配置布爾化變量] 

$config_read_hidden [配置讀取隱藏變量] 

$config_fix_newlines [配置固定換行符變量] 

$default_template_handler_func [默認模板處理函數變量] 

$php_handling [php處理變量] 

$security [安全變量] 

$secure_dir [安全目錄變量] 

$security_settings [安全配置變量] 

$trusted_dir [信任目錄變量] 

$left_delimiter [左結束符變量] 

$right_delimiter [右結束符變量] 

$compiler_class [編譯類變量] 

$request_vars_order [變量順序變量] 

$request_use_auto_globals [自動全局變量] 

$compile_id [編譯id變量] 

$use_sub_dirs [子目錄變量] 

$default_modifiers [默認修正器變量] 

$default_resource_type [默認源類型變量] 

13. Methods [方法] 

append [添加] 

append_by_ref [引用添加] 

assign [賦值] 

assign_by_ref [引用賦值] 

clear_all_assign [清除所有賦值] 

clear_all_cache [清除所有緩存] 

clear_assign [清除賦值] 

clear_cache [清除緩存] 

clear_compiled_tpl [清除已編譯模板] 

clear_config [清除配置] 

config_load [加載配置] 

display [顯示] 

fetch [取得輸出的內容] 

get_config_vars [取配置變量的值] 

get_registered_object [取得已注冊的對象] 

get_template_vars [取得模板變量的值] 

is_cached [是否已被緩存] 

load_filter [加載過濾器] 

register_block [注冊一個塊] 

register_compiler_function [注冊編譯函數] 

register_function [注冊函數] 

register_modifier [注冊修飾器] 

register_object [注冊對象] 

register_outputfilter [注冊輸出過濾器] 

register_postfilter [注冊提交過濾器] 

register_prefilter [注冊預過濾器] 

register_resource [注冊資源] 

trigger_error [觸發錯誤] 

template_exists [模板是否存在] 

unregister_block [注銷一個塊] 

unregister_compiler_function [注銷編譯函數] 

unregister_function [注銷函數] 

unregister_modifier [注銷修飾器] 

unregister_object [注銷對象] 

unregister_outputfilter [注銷輸出過濾器] 

unregister_postfilter [注銷提交過濾器] 

unregister_prefilter [注銷預過濾器] 

unregister_resource [注銷資源] 

14. Caching [緩存] 

Setting Up Caching [建立緩存] 

Multiple Caches Per Page [每頁多個緩存] 

Cache Groups [緩存集合] 

Controlling Cacheability of Plugins' Output [控制插件輸出的緩沖能力] 

15. Advanced Features [高級特點] 

Objects [對象] 

Prefilters [預過濾器] 

Postfilters [后過濾器] 

Output Filters [輸出濾鏡] 

Cache Handler Function [緩沖處理函數] 

Resources [資源] 

16. Extending Smarty With Plugins [以插件擴展Smarty] 

How Plugins Work [插件如何工作] 

Naming Conventions [命名約定] 

Writing Plugins [編寫插件] 

Template Functions [模板函數] 

Modifiers [修正器] 

Block Functions [塊函數] 

Compiler Functions [編譯函數] 

Prefilters/Postfilters [預濾器/后濾器] 

Output Filters [輸出過濾器] 

Resources [資源] 

Inserts [插入] 

IV. Appendixes [附錄] 

17. Troubleshooting [疑難解答] 

Smarty/PHP errors [Smarty/PHP 錯誤] 

18. Tips & Tricks [使用技巧和經驗] 

Blank Variable Handling [空白變量處理] 

Default Variable Handling [默認變量處理] 

Passing variable title to header template [傳遞變量標題給頭模板] 

Dates [日期] 

WAP/WML 

Componentized Templates [組合的模板] 

Obfuscating E-mail Addresses [拒絕電子郵件地址] 

19. Resources [相關資源] 

20. BUGS [漏洞] 

21. LIST 翻譯人員列表 


新疆福彩