mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
introducing the revcheck and WS
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||||
<chapter id="chapter.debugging.console">
|
<chapter id="chapter.debugging.console">
|
||||||
<title>Console de d<>bogage</title>
|
<title>Console de d<>bogage</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -16,8 +17,7 @@
|
|||||||
Pour d<>sactiver la console de d<>bogage, d<>finissez $debugging <20> false.
|
Pour d<>sactiver la console de d<>bogage, d<>finissez $debugging <20> false.
|
||||||
Vous pouvez <20>galement temporairement activer le d<>bogage en indiquant
|
Vous pouvez <20>galement temporairement activer le d<>bogage en indiquant
|
||||||
SMARTY_DEBUG dans l'url si tant est que l'option
|
SMARTY_DEBUG dans l'url si tant est que l'option
|
||||||
<link
|
<link linkend="variable.debugging.ctrl">$debugging_ctrl</link> soit activ<69>e.
|
||||||
linkend="variable.debugging.ctrl">$debugging_ctrl</link> soit activ<69>e.
|
|
||||||
</para>
|
</para>
|
||||||
<note>
|
<note>
|
||||||
<title>Note technique</title>
|
<title>Note technique</title>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||||
<chapter id="config.files">
|
<chapter id="config.files">
|
||||||
<title>Fichiers de configuration</title>
|
<title>Fichiers de configuration</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -14,6 +15,7 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>Exemple de fichier de configuration</title>
|
<title>Exemple de fichier de configuration</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
# variables globales
|
# variables globales
|
||||||
titrePage = "Menu principal"
|
titrePage = "Menu principal"
|
||||||
bodyBgColor = #000000
|
bodyBgColor = #000000
|
||||||
@@ -35,7 +37,9 @@ Intro = """Une valeur qui tient sur
|
|||||||
host=mon.domaine.com
|
host=mon.domaine.com
|
||||||
db=ADDRESSBOOK
|
db=ADDRESSBOOK
|
||||||
user=php-user
|
user=php-user
|
||||||
pass=foobar</programlisting>
|
pass=foobar
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
<para>
|
<para>
|
||||||
Les valeurs des variables de fichiers de configuration peuvent <20>tre entre
|
Les valeurs des variables de fichiers de configuration peuvent <20>tre entre
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||||
<chapter id="language.basic.syntax">
|
<chapter id="language.basic.syntax">
|
||||||
<title>Bases syntaxiques</title>
|
<title>Bases syntaxiques</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -16,13 +17,10 @@
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
&designers.language-basic-syntax.language-syntax-comments;
|
&designers.language-basic-syntax.language-syntax-comments;
|
||||||
|
|
||||||
&designers.language-basic-syntax.language-syntax-functions;
|
&designers.language-basic-syntax.language-syntax-functions;
|
||||||
|
|
||||||
&designers.language-basic-syntax.language-syntax-attributes;
|
&designers.language-basic-syntax.language-syntax-attributes;
|
||||||
&designers.language-basic-syntax.language-syntax-quotes;
|
&designers.language-basic-syntax.language-syntax-quotes;
|
||||||
&designers.language-basic-syntax.language-math;
|
&designers.language-basic-syntax.language-math;
|
||||||
|
|
||||||
&designers.language-basic-syntax.language-escaping;
|
&designers.language-basic-syntax.language-escaping;
|
||||||
|
|
||||||
</chapter>
|
</chapter>
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||||
<chapter id="language.builtin.functions">
|
<chapter id="language.builtin.functions">
|
||||||
<title>Fonctions natives</title>
|
<title>Fonctions natives</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -9,6 +10,7 @@
|
|||||||
qu'une fonction native. Vous ne pouvez pas non plus en modifier le
|
qu'une fonction native. Vous ne pouvez pas non plus en modifier le
|
||||||
comportement.
|
comportement.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
&designers.language-builtin-functions.language-function-capture;
|
&designers.language-builtin-functions.language-function-capture;
|
||||||
&designers.language-builtin-functions.language-function-config-load;
|
&designers.language-builtin-functions.language-function-config-load;
|
||||||
&designers.language-builtin-functions.language-function-foreach;
|
&designers.language-builtin-functions.language-function-foreach;
|
||||||
@@ -21,6 +23,7 @@
|
|||||||
&designers.language-builtin-functions.language-function-php;
|
&designers.language-builtin-functions.language-function-php;
|
||||||
&designers.language-builtin-functions.language-function-section;
|
&designers.language-builtin-functions.language-function-section;
|
||||||
&designers.language-builtin-functions.language-function-strip;
|
&designers.language-builtin-functions.language-function-strip;
|
||||||
|
|
||||||
</chapter>
|
</chapter>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||||
<chapter id="language.combining.modifiers">
|
<chapter id="language.combining.modifiers">
|
||||||
<title>Combiner des modificateurs de variable.</title>
|
<title>Combiner des modificateurs de variable.</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -9,31 +10,43 @@
|
|||||||
</para>
|
</para>
|
||||||
<example>
|
<example>
|
||||||
<title>Combiner des modificateurs</title>
|
<title>Combiner des modificateurs</title>
|
||||||
<programlisting>
|
<programlisting role="php">
|
||||||
index.php:
|
<![CDATA[
|
||||||
|
<?php
|
||||||
|
|
||||||
$smarty = new Smarty;
|
$smarty = new Smarty;
|
||||||
$smarty->assign('titreArticle', 'Les fumeurs sont productifs, mais la mort
|
$smarty->assign('titreArticle', 'Les fumeurs sont productifs, mais la mort
|
||||||
tue l'efficacit<69>e.');
|
tue l'efficacit<69>e.');
|
||||||
$smarty->display('index.tpl');
|
$smarty->display('index.tpl');
|
||||||
|
|
||||||
index.tpl:
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
|
<para>
|
||||||
|
<filename>index.tpl</filename> <20>tant :
|
||||||
|
</para>
|
||||||
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{$titreArticle}
|
{$titreArticle}
|
||||||
{$titreArticle|upper|spacify}
|
{$titreArticle|upper|spacify}
|
||||||
{$titreArticle|lower|spacify|truncate}
|
{$titreArticle|lower|spacify|truncate}
|
||||||
{$titreArticle|lower|truncate:30|spacify}
|
{$titreArticle|lower|truncate:30|spacify}
|
||||||
{$titreArticle|lower|spacify|truncate:30:". . ."}
|
{$titreArticle|lower|spacify|truncate:30:". . ."}
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
SORTIE:
|
<para>
|
||||||
|
Cela va afficher :
|
||||||
|
</para>
|
||||||
|
<screen>
|
||||||
|
<![CDATA[
|
||||||
Les fumeurs sont productifs, mais la mort tue l'efficacit<69>e.
|
Les fumeurs sont productifs, mais la mort tue l'efficacit<69>e.
|
||||||
L E S F U M E U R S S O N T P R O D U C T I F S , M A I S L A M O R T T U E L ' E F F I C A C I T <20> E .
|
L E S F U M E U R S S O N T P R O D U C T I F S , M A I S L A M O R T T U E L ' E F F I C A C I T <20> E .
|
||||||
L E S F U M E U R S S O N T P R O D U C T I F S , M A I S L A M...
|
L E S F U M E U R S S O N T P R O D U C T I F S , M A I S L A M...
|
||||||
L E S F U M E U R S S O N T P R O D U C T I F S , M A I S L A M...
|
L E S F U M E U R S S O N T P R O D U C T I F S , M A I S L A M...
|
||||||
L e s f u m e u r s s o n t p r o d u c t i f s , . . .
|
L e s f u m e u r s s o n t p r o d u c t i f s , . . .
|
||||||
L e s f u m e u r s s. . .</programlisting>
|
L e s f u m e u r s s. . .
|
||||||
|
]]>
|
||||||
|
</screen>
|
||||||
</example>
|
</example>
|
||||||
</chapter>
|
</chapter>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
@@ -1,11 +1,13 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||||
<chapter id="language.custom.functions">
|
<chapter id="language.custom.functions">
|
||||||
<title>Fonctions utilisateur</title>
|
<title>Fonctions utilisateur</title>
|
||||||
<para>
|
<para>
|
||||||
Smarty est livr<76> avec plusieurs fonctions utilisateurs que vous pouvez
|
Smarty est livr<76> avec plusieurs fonctions utilisateurs que vous pouvez
|
||||||
appeler dans vos templates.
|
appeler dans vos templates.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
&designers.language-custom-functions.language-function-assign;
|
&designers.language-custom-functions.language-function-assign;
|
||||||
&designers.language-custom-functions.language-function-counter;
|
&designers.language-custom-functions.language-function-counter;
|
||||||
&designers.language-custom-functions.language-function-cycle;
|
&designers.language-custom-functions.language-function-cycle;
|
||||||
@@ -24,6 +26,7 @@
|
|||||||
&designers.language-custom-functions.language-function-popup-init;
|
&designers.language-custom-functions.language-function-popup-init;
|
||||||
&designers.language-custom-functions.language-function-popup;
|
&designers.language-custom-functions.language-function-popup;
|
||||||
&designers.language-custom-functions.language-function-textformat;
|
&designers.language-custom-functions.language-function-textformat;
|
||||||
|
|
||||||
</chapter>
|
</chapter>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||||
<chapter id="language.modifiers">
|
<chapter id="language.modifiers">
|
||||||
<title>Modificateurs de variables</title>
|
<title>Modificateurs de variables</title>
|
||||||
<para>
|
<para>
|
||||||
@@ -14,8 +15,9 @@
|
|||||||
<example>
|
<example>
|
||||||
<title>Exemple de modificateur</title>
|
<title>Exemple de modificateur</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{* Met le titre en majuscule *}
|
{* Met le titre en majuscule *}
|
||||||
<h2>{$title|upper}</h2>
|
<h2>{$title|upper}</h2>
|
||||||
|
|
||||||
{* Tronque le sujet <20> 40 caract<63>res, place des "..." <20> la fin *}
|
{* Tronque le sujet <20> 40 caract<63>res, place des "..." <20> la fin *}
|
||||||
Sujet: {$sujet|truncate:40:"..."}
|
Sujet: {$sujet|truncate:40:"..."}
|
||||||
@@ -24,7 +26,9 @@ Sujet: {$sujet|truncate:40:"..."}
|
|||||||
{"now"|date_format:"%Y/%m/%d"}
|
{"now"|date_format:"%Y/%m/%d"}
|
||||||
|
|
||||||
{* application d'un modificateur <20> une fonction utilisateur *}
|
{* application d'un modificateur <20> une fonction utilisateur *}
|
||||||
{mailto|upper address="me@domain.dom"}</programlisting>
|
{mailto|upper address="me@domain.dom"}
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</example>
|
</example>
|
||||||
<para>
|
<para>
|
||||||
Si vous appliquez un modificateur de variable <20> un tableau plut<75>t qu'<27> une
|
Si vous appliquez un modificateur de variable <20> un tableau plut<75>t qu'<27> une
|
||||||
|
@@ -1,12 +1,12 @@
|
|||||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||||
<!-- $Revision$ -->
|
<!-- $Revision$ -->
|
||||||
|
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||||
<chapter id="language.variables">
|
<chapter id="language.variables">
|
||||||
<title>Variables</title>
|
<title>Variables</title>
|
||||||
<para>
|
<para>
|
||||||
Smarty poss<73>de diff<66>rents types de variables. Le type de ces variables d<>pend
|
Smarty poss<73>de diff<66>rents types de variables. Le type de ces variables d<>pend
|
||||||
du symbole qui les pr<70>fixe, ou des symboles qui les entourent.
|
du symbole qui les pr<70>fixe, ou des symboles qui les entourent.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Les variables de Smarty peuvent <20>tre soit affich<63>es directement, soit utilis<69>es
|
Les variables de Smarty peuvent <20>tre soit affich<63>es directement, soit utilis<69>es
|
||||||
comme arguments pour les fonctions et modificateurs, <20> l'int<6E>rieur d'expressions
|
comme arguments pour les fonctions et modificateurs, <20> l'int<6E>rieur d'expressions
|
||||||
@@ -14,18 +14,20 @@
|
|||||||
Pour afficher une variable, il suffit de l'entourer par des d<>limiteurs de
|
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 :
|
telle sorte qu'elle soit la seule chose qu'ils contiennent. Exemple :
|
||||||
<programlisting>
|
<programlisting>
|
||||||
|
<![CDATA[
|
||||||
{$Nom}
|
{$Nom}
|
||||||
|
|
||||||
{$Contacts[enreg].Telephone}
|
{$Contacts[enreg].Telephone}
|
||||||
|
|
||||||
<body bgcolor="{#bgcolor#}"></programlisting>
|
<body bgcolor="{#bgcolor#}">
|
||||||
|
]]>
|
||||||
|
</programlisting>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
&designers.language-variables.language-assigned-variables;
|
&designers.language-variables.language-assigned-variables;
|
||||||
|
|
||||||
&designers.language-variables.language-config-variables;
|
&designers.language-variables.language-config-variables;
|
||||||
|
|
||||||
&designers.language-variables.language-variables-smarty;
|
&designers.language-variables.language-variables-smarty;
|
||||||
|
|
||||||
</chapter>
|
</chapter>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
|
Reference in New Issue
Block a user