Get Smarty

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:

Check reviews of PHP Web Hosting, compatible with Smarty Templates

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.
Post a Comment
All comments are moderated. Support questions are ignored, use the forums instead.
Author:
Email: (not shown)
What is 14 plus 17? (Are you human?)

Sponsors [info]

Cheap Website Hosting @hostdone.com
email marketing @ActiveCampaign
broadband deals @BroadbandGenie
Best UK Web Hosting @webhost.uk.net
Reliable UK and US Web Hosting @rshosting.com
Cheap US and UK Web Hosting @infrenion.com
I.T Certification Exams @pass-guaranteed.com
Certification Practice Tests @firsttrycertify.com
Certification Practice Exam Questions @ace-it-certifications.com
Broadband Speed Test @broadbandspeed.co.uk
bulk email software @americaint.com
ASP.NET hosting @aspnethosting.co.uk