Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
21Activity

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
PHP - Smarty Manual

PHP - Smarty Manual

Ratings:

4.75

(4)
|Views: 1,031|Likes:
Published by wisher_mta

More info:

Published by: wisher_mta on Dec 07, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

10/16/2011

pdf

text

original

 
Smarty Manual
by
Monte Ohrt <monte at ohrt dot com> and Andrei Zmievski <andrei@php.net>
 
Smarty Manual
Published 31-03-2005Copyright © 2001-2005 New Digital Group, Inc.
 
Table of Contents
Preface............................................................................................................................................... viI. Getting Started................................................................................................................................... 11. What is Smarty?........................................................................................................................ 22. Installation............................................................................................................................... 3Requirements....................................................................................................................... 3Basic Installation.................................................................................................................. 3Extended Setup..................................................................................................................... 6II. Smarty For Template Designers........................................................................................................... 83. Basic Syntax........................................................................................................................... 10Comments......................................................................................................................... 10Variables........................................................................................................................... 10Functions........................................................................................................................... 11Attributes.......................................................................................................................... 11Embedding Vars in Double Quotes......................................................................................... 12Math................................................................................................................................. 12Escaping Smarty Parsing...................................................................................................... 124. Variables................................................................................................................................ 14Variables assigned from PHP................................................................................................ 14Variables loaded from config files.......................................................................................... 16{$smarty} reserved variable.................................................................................................. 175. Variable Modifiers................................................................................................................... 19capitalize........................................................................................................................... 20count_characters................................................................................................................. 20cat.................................................................................................................................... 21count_paragraphs................................................................................................................ 21count_sentences.................................................................................................................. 22count_words...................................................................................................................... 22date_format........................................................................................................................ 23default.............................................................................................................................. 25escape............................................................................................................................... 26indent............................................................................................................................... 26lower................................................................................................................................ 27nl2br................................................................................................................................. 28regex_replace..................................................................................................................... 28replace.............................................................................................................................. 29spacify.............................................................................................................................. 30string_format...................................................................................................................... 30strip.................................................................................................................................. 31strip_tags........................................................................................................................... 31truncate............................................................................................................................. 32upper................................................................................................................................ 33wordwrap.......................................................................................................................... 336. Combining Modifiers............................................................................................................... 357. Built-in Functions.................................................................................................................... 36capture.............................................................................................................................. 36config_load........................................................................................................................ 37foreach,foreachelse.............................................................................................................. 38include.............................................................................................................................. 40include_php....................................................................................................................... 41insert................................................................................................................................ 42if,elseif,else........................................................................................................................ 43ldelim,rdelim...................................................................................................................... 44literal................................................................................................................................ 45iii

Activity (21)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Mike Conley liked this
p2186 liked this
raf051047 liked this
G.G.S liked this
paruliano liked this
eusuntombun liked this
surface995 liked this
criticalideas liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->