Part II. Smarty Per Progettisti di Template

Table of Contents

3. Sintassi di base
Commenti
Funzioni
Attributi
Incorporare variabili fra virgolette
Funzioni aritmetiche
Evitare il parsing di Smarty
4. Variabili
Variabili valorizzate da PHP
Array associativi
Array con indici numerici
Oggetti
Variabili caricate da file di configurazione
La variabile riservata {$smarty}
Variabili della richiesta HTTP
{$smarty.now}
{$smarty.const}
{$smarty.capture}
{$smarty.config}
{$smarty.section}, {$smarty.foreach}
{$smarty.template}
{$smarty.version}
{$smarty.ldelim}
{$smarty.rdelim}
5. Modificatori delle variabili
capitalize
count_characters
cat
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. Combinare i modificatori
7. Funzioni incorporate
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. File di configurazione
10. Console di Debugging