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

Table Of Contents

0 of .
Results for:
No results containing your search query
P. 1
Smarty-2 6 14-docs

Smarty-2 6 14-docs

Ratings: (0)|Views: 6,461|Likes:
Published by jeolcavaco
Documentacao
Documentacao

More info:

Published by: jeolcavaco on Aug 16, 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

05/09/2014

pdf

text

original

 
Smarty - a ferramenta para compilartemplates para PHP
por
Monte Ohrt <monte at ohrt dot com> e Andrei Zmievski <andrei@php.net>
 
Smarty - a ferramenta para compilar templates para PHP
Publicado 07-09-2007Copyright © 2001-2005 New Digital Group, Inc.
 
Índice
Prefácio............................................................................................................................................. viiI. Iniciando.......................................................................................................................................... 11. O que é o Smarty?...................................................................................................................... 22. Instalação................................................................................................................................. 4Requisitos............................................................................................................................ 4Instalação Básica.................................................................................................................. 4Estendendo a configuração...................................................................................................... 7II. Smarty para Designers de Template...................................................................................................... 93. Sintaxe Básica......................................................................................................................... 11Comentários....................................................................................................................... 11Funções............................................................................................................................. 11Atributos........................................................................................................................... 12Colocando Variáveis em Aspas Duplas................................................................................... 12Matemática........................................................................................................................ 13Escapando da interpretação do Smarty.................................................................................... 134. Variáveis................................................................................................................................ 15Variáveis definidas do PHP................................................................................................... 15Variáveis carregadas de arquivos de configuração..................................................................... 17A variável reservada {$smarty}............................................................................................. 185. Modificadores de variáveis........................................................................................................ 20capitalize........................................................................................................................... 21count_characters................................................................................................................. 21cat.................................................................................................................................... 22count_paragraphs................................................................................................................ 22count_sentences.................................................................................................................. 23count_words...................................................................................................................... 23date_format........................................................................................................................ 23default.............................................................................................................................. 25escape............................................................................................................................... 26indent............................................................................................................................... 27lower................................................................................................................................ 27nl2br................................................................................................................................. 28regex_replace..................................................................................................................... 28replace.............................................................................................................................. 29spacify.............................................................................................................................. 29string_format...................................................................................................................... 30strip.................................................................................................................................. 30strip_tags........................................................................................................................... 31truncate............................................................................................................................. 31upper................................................................................................................................ 32wordwrap.......................................................................................................................... 336. Combinando Modificadores....................................................................................................... 347. Funções internas...................................................................................................................... 35capture.............................................................................................................................. 35config_load........................................................................................................................ 36foreach,foreachelse.............................................................................................................. 37include.............................................................................................................................. 39include_php....................................................................................................................... 40insert................................................................................................................................ 41if,elseif,else........................................................................................................................ 42ldelim,rdelim...................................................................................................................... 43literal................................................................................................................................ 44php................................................................................................................................... 44iii

Activity (4)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
narsh liked this

You're Reading a Free Preview

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