---
title: "Smarty - 官方网站"
author: "javaeyeren"
date: "2009-02-02T16:20:00Z"
tags: []
slug: "smarty"
draft: false
lastmod: "2009-02-02T16:20:00Z"
id: 601315
url: "https://javaeyeren.iteye.com/blog/601315"
---

## \[Smarty - 官方网站]

[http://smarty.php.net/](http://smarty.php.net/ "http://smarty.php.net/")

## \[Smarty - 下载地址]

[当前版本 2.6.18, http://smarty.php.net/do\_download.php?download\_file=Smarty-2.6.18.tar.gz](http://smarty.php.net/do_download.php?download_file=Smarty-2.6.18.tar.gz "当前版本 2.6.18, http://smarty.php.net/do_download.php?download_file=Smarty-2.6.18.tar.gz")

[全部列表, http://smarty.php.net/download.php](http://smarty.php.net/download.php "http://smarty.php.net/download.php")

## \[Smarty - 相关论坛]

[http://php.board.newsmth.net/](http://php.board.newsmth.net/ "http://php.board.newsmth.net/")  
[http://forum.csdn.net/SList/PHP/](http://forum.csdn.net/SList/PHP/ "http://forum.csdn.net/SList/PHP/")  
[http://www.phpinsider.com/smarty-forum/](http://www.phpinsider.com/smarty-forum/ "http://www.phpinsider.com/smarty-forum/")  
[http://news.php.net/php.smarty.general](http://news.php.net/php.smarty.general "http://news.php.net/php.smarty.general")  
[http://news.php.net/php.smarty.dev](http://news.php.net/php.smarty.dev "http://news.php.net/php.smarty.dev")  
[http://news.php.net/php.smarty.cvs](http://news.php.net/php.smarty.cvs "http://news.php.net/php.smarty.cvs")

## \[Smarty - 关键词]

smarty

## \[Smarty - Manual手册]

[借助cycle实现循环输出值, http://smarty.php.net/manual/en/language.function.cycle.php](http://smarty.php.net/manual/en/language.function.cycle.php "借助register_function可以实现自定义标记, http://smarty.php.net/manual/en/api.register.function.php")

[Smarty的cat函数, http://smarty.php.net/manual/en/language.modifier.cat.php](http://smarty.php.net/manual/en/language.modifier.cat.php "Smarty的cat函数, http://smarty.php.net/manual/en/language.modifier.cat.php")

[Smarty的upper函数, http://smarty.php.net/manual/en/language.modifier.upper.php](http://smarty.php.net/manual/en/language.modifier.upper.php "Smarty的upper函数, http://smarty.php.net/manual/en/language.modifier.upper.php")

### \[Smarty - Manual手册 - 第3章 基础语法]

[Comments注释, http://smarty.php.net/manual/en/language.basic.syntax.php#language.syntax.comments](http://smarty.php.net/manual/en/language.basic.syntax.php#language.syntax.comments "Comments注释, http://smarty.php.net/manual/en/language.basic.syntax.php#language.syntax.comments")  
[Math数学运算, http://smarty.php.net/manual/en/language.math.php](http://smarty.php.net/manual/en/language.math.php "Math数学运算, http://smarty.php.net/manual/en/language.math.php")

### \[Smarty - Manual手册 - Chapter 5. Variable Modifiers第5章 变量修饰符]

[cat将值连接到给定变量之后, http://smarty.php.net/manual/en/language.modifier.cat.php](http://smarty.php.net/manual/en/language.modifier.cat.php "cat将值连接到给定变量之后, http://smarty.php.net/manual/en/language.modifier.cat.php")

[upper将字符串转换成大写字母, http://smarty.php.net/manual/en/language.modifier.upper.php](http://smarty.php.net/manual/en/language.modifier.upper.php "upper将字符串转换成大写字母, http://smarty.php.net/manual/en/language.modifier.upper.php")

[escape转义修饰符, http://smarty.php.net/manual/en/language.modifier.escape.php](http://smarty.php.net/manual/en/language.modifier.escape.php "escape转义修饰符, http://smarty.php.net/manual/en/language.modifier.escape.php")

### \[Smarty - Manual手册 - Chapter 7. Built-in Functions内建函数]

[{foreach},{foreachelse}, http://smarty.php.net/manual/en/language.function.foreach.php](http://smarty.php.net/manual/en/language.function.foreach.php "{foreach},{foreachelse}, http://smarty.php.net/manual/en/language.function.foreach.php")

[{strip}在显示之前删除每行前后多余的空格和回车字符, http://smarty.php.net/manual/en/language.function.strip.php](http://smarty.php.net/manual/en/language.function.strip.php "{strip}在显示之前删除每行前后多余的空格和回车字符, http://smarty.php.net/manual/en/language.function.strip.php")

### \[Smarty - Manual手册 - Chapter 8. Custom Functions第8章 自定义函数]

[{assign}用于在模板执行过程中设置模板变量, http://smarty.php.net/manual/en/language.custom.functions.php#language.function.assign](http://smarty.php.net/manual/en/language.custom.functions.php#language.function.assign "{assign}用于在模板执行过程中设置模板变量, http://smarty.php.net/manual/en/language.custom.functions.php#language.function.assign")

[{counter}计数器, http://smarty.php.net/manual/en/language.custom.functions.php](http://smarty.php.net/manual/en/language.custom.functions.php "{counter}计数器, http://smarty.php.net/manual/en/language.custom.functions.php")

### \[Smarty - Manual手册 - 第13章 Smarty类方法]

[register\_function()动态注册模板函数插件, http://smarty.php.net/manual/en/api.register.function.php](http://smarty.php.net/manual/en/api.register.function.php "register_function()动态注册模板函数插件, http://smarty.php.net/manual/en/api.register.function.php")

[assign\_by\_ref()按引用赋值, http://smarty.php.net/manual/en/api.assign.by.ref.php](http://smarty.php.net/manual/en/api.assign.by.ref.php "assign_by_ref()按引用赋值, http://smarty.php.net/manual/en/api.assign.by.ref.php")