Part II. Smarty For Template Designers

Table of Contents

3. Basic Syntax
Comentarios
Variables
Funciones
Atributos
Colocando variables entre comillas dobles
Matemáticas
Escaping Smarty Parsing
4. Variables
Variables definidas desde PHP
Arreglos asociativos
Índices de Matrices
Objects
Variables cargadas desde archivos de configuración
La variable reservada {$smarty}
Solicitud de Variables
{$smarty.now}
{$smarty.const}
{$smarty.capture}
{$smarty.config}
{$smarty.section}, {$smarty.foreach}
{$smarty.template}
{$smarty.version}
{$smarty.ldelim}, {$smarty.rdelim}
5. Modificadores de variables
capitalize
cat
count_characters
count_paragraphs
count_sentences
count_words
date_format
default
escape
indent
lower
nl2br
regex_replace
replace
spacify
string_format
strip
strip_tags
truncate
upper
wordwrap
6. Combinando Modificadores
7. Funciones Integradas
capture
config_load
{foreach},{foreachelse}
iteration
first
last
show
total
include
{include_php}
insert
if,elseif,else
{ldelim},{rdelim}
literal
{php}
section,sectionelse
index
index_prev
index_next
iteration
first
last
rownum
loop
show
total
{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