mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-28 02:41:37 +01:00
52 lines
1.4 KiB
XML
52 lines
1.4 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 1.5 Maintainer: gerald Status: ready -->
|
|
<chapter id="language.variables">
|
|
<title>Variables</title>
|
|
<para>
|
|
Smarty possède différents types de variables. Le type de ces variables dépend
|
|
du symbole qui les préfixe, ou des symboles qui les entourent.
|
|
</para>
|
|
<para>
|
|
Les variables de Smarty peuvent être soit affichées directement, soit utilisées
|
|
comme arguments pour les fonctions et modificateurs, à l'intérieur d'expressions
|
|
conditionnelles, etc.
|
|
Pour afficher une variable, il suffit de l'entourer par des délimiteurs de
|
|
telle sorte qu'elle soit la seule chose qu'ils contiennent. Exemple :
|
|
<programlisting>
|
|
<![CDATA[
|
|
{$Nom}
|
|
|
|
{$Contacts[enreg].Telephone}
|
|
|
|
<body bgcolor="{#bgcolor#}">
|
|
]]>
|
|
</programlisting>
|
|
</para>
|
|
|
|
&designers.language-variables.language-assigned-variables;
|
|
&designers.language-variables.language-config-variables;
|
|
&designers.language-variables.language-variables-smarty;
|
|
|
|
</chapter>
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|