Get Smarty

Donate

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

Advertisement

Part II. Smarty für Template Designer

Table of Contents

3. Grundlegende Syntax
Kommentare
Variablen
Funktionen
Attribute / Parameter
Variablen mit Doppelten Anführungszeichen
Math
Smarty Parsing umgehen
4. Variablen
Aus einem PHP-Skript zugewiesene Variablen
Assoziative Arrays
Array Index
Objekte
Verwendung von Variablen aus Konfigurationsdateien
Die reservierte {$smarty} Variable
Request-Variablen
{$smarty.now}
{$smarty.const}
{$smarty.capture}
{$smarty.config}
{$smarty.section}, {$smarty.foreach}
{$smarty.template}
{$smarty.version}
{$smarty.ldelim}, {$smarty.rdelim}
5. Variablen-Modifikatoren
capitalize (in Grossbuchstaben schreiben)
cat
count_characters (Buchstaben zählen)
count_paragraphs (Absätze zählen)
count_sentences (Sätze zählen)
count_words (Wörter zählen)
date_format (Datums Formatierung)
default (Standardwert)
escape (Maskieren)
indent (Einrücken)
lower (in Kleinbuchstaben schreiben)
nl2br
regex_replace (Ersetzen mit regulären Ausdrücken)
replace (Ersetzen)
spacify (Zeichenkette splitten)
string_format (Zeichenkette formatieren)
strip (Zeichenkette strippen)
strip_tags
truncate (kürzen)
upper (in Grossbuchstaben umwandeln)
wordwrap (Zeilenumbruch)
6. Kombinieren von Modifikatoren
7. Eingebaute Funktionen
{capture} (Ausgabe abfangen)
{config_load} (Konfiguration laden)
{foreach}, {foreachelse}
iteration
first
last
show
total
{if},{elseif},{else}
include (einbinden)
include_php (PHP-Code einbinden)
insert (einfügen)
ldelim,rdelim (Ausgabe der Trennzeichen)
literal
php
section,sectionelse
index
index_prev
index_next
first
last
rownum
loop
show
total
strip
8. Eigene Funktionen
{assign} (zuweisen)
{counter} (Zähler)
{cycle} (Zyklus)
{debug}
{eval} (auswerten)
{fetch}
{html_checkboxes} (Ausgabe von HTML-Checkbox Tag)
html_image (Ausgabe von HTML-IMG Tag)
html_options (Ausgabe von HTML-Options)
html_radios (Ausgabe von HTML-RADIO Tags)
html_select_date (Ausgabe von Daten als HTML-'options')
html_select_time (Ausgabe von Zeiten als HTML-'options')
html_table (Ausgabe von HTML-TABLE Tag)
mailto
math (Mathematik)
popup (Popup-Inhalt definieren)
popup_init (Popup Initialisieren)
textformat (Textformatierung)
9. Konfigurationsdateien
10. Debugging Konsole
Comments
No comments for this page.

Advertisement

Sponsors [info]

Sponsors