What is Smarty?
Why use it?
Use Cases and Work Flow
Syntax Comparison
Template Inheritance
Best Practices
Crash Course
You may use the Smarty logo according to the trademark notice.
For sponsorship, advertising, news or other inquiries, contact us at:
Table of Contents
Smarty è fornito di numerose funzioni utente che potete utilizzare nei template.
Nome Attributo | Tipo | Obbligatorio | Default | Descrizione |
---|---|---|---|---|
var | stringa | sì | nessuno | Nome della variabile valorizzata |
value | stringa | sì | nessuno | Valore assegnato alla variabile |
assign è usato per assegnare valori alle variabili del template durante l'esecuzione dello stesso.
Example 8.1. assign
{assign var="name" value="Bob"} The value of $name is {$name}. OUTPUT: The value of $name is Bob.