mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
sync with EN
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.5 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.6 Maintainer: gerald Status: ready -->
|
||||
<chapter id="language.basic.syntax">
|
||||
<title>Bases syntaxiques</title>
|
||||
<para>
|
||||
Toutes les balises Smarty sont entour<75>es de d<>limiteurs. Par d<>faut,
|
||||
ces d<>limiteurs sont <literal>{</literal> et
|
||||
<literal>}</literal>, mais ils peuvent <20>tre modifi<EFBFBD>s.
|
||||
<literal>}</literal>, mais ils peuvent <20>tre <link linkend="variable.left.delimiter">modifi<EFBFBD>s</link>.
|
||||
</para>
|
||||
<para>
|
||||
Pour ces exemples, nous supposons que vous utiliserez leur valeur par d<>faut.
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.syntax.functions">
|
||||
<title>Fonctions</title>
|
||||
<para>
|
||||
@@ -29,14 +29,16 @@
|
||||
<para>
|
||||
Les fonctions natives et les fonctions utilisateurs ont toutes deux la m<>me
|
||||
syntaxe, dans les templates. Les fonctions natives sont relatives
|
||||
au traitement interne de Smarty, comme par exemple <command>if</command>,
|
||||
<command>section</command> et <command>strip</command>. Elles ne peuvent
|
||||
<EFBFBD>tre modifi<66>es. Les fonctions utilisateurs sont des fonctions additionnelles,
|
||||
impl<EFBFBD>ment<EFBFBD>es par l'interm<72>diaire de plugins.
|
||||
Elles peuvent <20>tre modifi<66>es pour correspondre <20> vos besoins, et vous
|
||||
pouvez en cr<63>er de nouvelles. <command>html_options</command> et
|
||||
<command>html_select_date</command> sont deux exemples de fonctions
|
||||
utilisateurs.
|
||||
au traitement interne de Smarty, comme par exemple <link
|
||||
linkend="language.function.if"><command>if</command></link>,
|
||||
<link linkend="language.function.section"><command>section</command></link> et
|
||||
<link linkend="language.function.strip"><command>strip</command></link>.
|
||||
Elles ne peuvent <20>tre modifi<66>es. Les fonctions utilisateurs sont des fonctions additionnelles,
|
||||
impl<EFBFBD>ment<EFBFBD>es par l'interm<72>diaire de plugins. Elles peuvent <20>tre modifi<66>es pour correspondre
|
||||
<EFBFBD> vos besoins, et vous pouvez en cr<63>er de nouvelles.
|
||||
<link linkend="language.function.html.options"><command>html_options</command></link> et
|
||||
<link linkend="language.function.html.select.date"><command>html_select_date</command></link>
|
||||
sont deux exemples de fonctions utilisateurs.
|
||||
</para>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.4 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.5 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.function.config.load">
|
||||
<title>config_load</title>
|
||||
<informaltable frame="all">
|
||||
@@ -15,7 +15,7 @@
|
||||
<entry>Nom attribut</entry>
|
||||
<entry>Type</entry>
|
||||
<entry>Requis</entry>
|
||||
<entry>Defaut</entry>
|
||||
<entry>D<EFBFBD>faut</entry>
|
||||
<entry>Description</entry>
|
||||
</row>
|
||||
</thead>
|
||||
@@ -124,6 +124,12 @@
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="config.files">les fichiers de configuration</link> et
|
||||
<link linkend="language.function.config.load">config_load</link>.
|
||||
</para>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.4 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.5 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.function.ldelim">
|
||||
<title>ldelim,rdelim</title>
|
||||
<para>
|
||||
@@ -29,6 +29,10 @@
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
<para>
|
||||
Voir aussi la
|
||||
<link linkend="language.escaping">d<EFBFBD>sactivation l'analyse de Smarty</link>.
|
||||
</para>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.4 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.function.literal">
|
||||
<title>literal</title>
|
||||
<para>
|
||||
@@ -38,6 +38,10 @@
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Voir aussi la
|
||||
<link linkend="language.escaping">d<EFBFBD>sactivation de l'analyse de Smarty</link>.
|
||||
</para>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.6 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.7 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.function.html.checkboxes">
|
||||
<title>html_checkboxes</title>
|
||||
<informaltable frame="all">
|
||||
@@ -91,6 +91,9 @@
|
||||
</para>
|
||||
<example>
|
||||
<title>html_checkboxes</title>
|
||||
<para>
|
||||
O<> le code PHP est :
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
@@ -102,16 +105,19 @@ $smarty->assign('customer_id', 1001);
|
||||
$smarty->display('index.tpl');
|
||||
|
||||
?>
|
||||
]]
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
ou index.tpl est:
|
||||
et index.tpl est:
|
||||
</para>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
{html_checkboxes name="id" values=$cust_ids selected=$customer_id output=$cust_names separator="<br />"}
|
||||
]]
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
ou bien, le code PHP est :
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
@@ -129,7 +135,7 @@ $smarty->display('index.tpl');
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
ou index.tpl est:
|
||||
et index.tpl est:
|
||||
</para>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.4 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.5 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.function.html.options">
|
||||
<title>html_options</title>
|
||||
<informaltable frame="all">
|
||||
@@ -133,10 +133,10 @@ SORTIE: (valable pour les deux exemples)
|
||||
-----------------------
|
||||
|
||||
<select name=client_id>
|
||||
<option value="1000">Joe Schmoe</option>
|
||||
<option value="1001" selected="selected">Jack Smith</option>
|
||||
<option value="1002">Jane Johnson</option>
|
||||
<option value="1003">Charlie Brown</option>
|
||||
<option label="Joe Schmoe" value="1000">Joe Schmoe</option>
|
||||
<option label="Jack Smith" value="1001" selected="selected"<Jack Smith</option>
|
||||
<option label="Jane Johnson" value="1002">Jane Johnson</option>
|
||||
<option label="Charlie Brown" value="1003">Charlie Brown</option>
|
||||
</select>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.4 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.function.html.radios">
|
||||
<title>html_radios</title>
|
||||
<informaltable frame="all">
|
||||
@@ -121,10 +121,10 @@ index.tpl:
|
||||
|
||||
SORTIE: (pour les deux exemples)
|
||||
|
||||
<input type="radio" name="id" value="1000">Joe Schmoe<br />
|
||||
<input type="radio" name="id" value="1001" checked="checked"><br />
|
||||
<input type="radio" name="id" value="1002">Jane Johnson<br />
|
||||
<input type="radio" name="id" value="1003">Charlie Brown<br /></programlisting>
|
||||
<label for="id_1000"><input type="radio" name="id" value="1000" id="id_1000" />Joe Schmoe</label><br />
|
||||
<label for="id_1001"><input type="radio" name="id" value="1001" id="id_1001" checked="checked" />Jack Smith</label><br />
|
||||
<label for="id_1002"><input type="radio" name="id" value="1002" id="id_1002" />Jane Johnson</label><br />
|
||||
<label for="id_1003"><input type="radio" name="id" value="1003" id="id_1003" />Charlie Brown</label><br /></programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.function.mailto">
|
||||
<title>mailto</title>
|
||||
<informaltable frame="all">
|
||||
@@ -15,7 +15,7 @@
|
||||
<entry>Nom attribut</entry>
|
||||
<entry>Type</entry>
|
||||
<entry>Requis</entry>
|
||||
<entry>Defaut</entry>
|
||||
<entry>D<EFBFBD>faut</entry>
|
||||
<entry>Description</entry>
|
||||
</row>
|
||||
</thead>
|
||||
@@ -40,7 +40,8 @@
|
||||
<entry>Non</entry>
|
||||
<entry><emphasis>none</emphasis></entry>
|
||||
<entry>Comment encoder l'adresse email.
|
||||
none, hex et javascript sont des valeurs correctes.</entry>
|
||||
<literal>none</literal>, <literal>hex</literal>, <literal>javascript</literal>
|
||||
et <literal>javascript_charcode</literal> sont des valeurs correctes.</entry>
|
||||
</row>
|
||||
<row>
|
||||
<entry>cc</entry>
|
||||
@@ -115,20 +116,26 @@
|
||||
{mailto address="moi@example.com" subject="Hello to you!"}
|
||||
{mailto address="moi@example.com" cc="you@domain.com,they@domain.com"}
|
||||
{mailto address="moi@example.com" extra='class="email"'}
|
||||
{mailto address="me@example.com" encode="javascript_charcode"}
|
||||
|
||||
SORTIE:
|
||||
|
||||
<a href="mailto:moi@example.com" >moi@example.com</a>
|
||||
<a href="mailto:moi@example.com" >send me some mail</a>
|
||||
<SCRIPT language="javascript">eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%6
|
||||
<script type="text/javascript" language="javascript">eval(unescape('%64%6f%63%75%6d%65%6e%74%2e%77%72%6
|
||||
9%74%65%28%27%3c%61%20%68%72%65%66%3d%22%6d%61%69%6c%74%6f%3a%6d%65%40%64%6f%6d%
|
||||
61%69%6e%2e%63%6f%6d%22%20%3e%6d%65%40%64%6f%6d%61%69%6e%2e%63%6f%6d%3c%2f%61%3e
|
||||
%27%29%3b'))</SCRIPT>
|
||||
%27%29%3b'))</script>
|
||||
<a href="mailto:%6d%65@%64%6f%6d%61%69%6e.%63%6f%6d" >&#x6d;&#x65;&#x40;&#x64;&
|
||||
#x6f;&#x6d;&#x61;&#x69;&#x6e;&#x2e;&#x63;&#x6f;&#x6d;</a>
|
||||
<a href="mailto:moi@example.com?subject=Hello%20to%20you%21" >moi@example.com</a>
|
||||
<a href="mailto:moi@example.com?cc=you@example.com%2Cthey@example.com" >moi@example.com</a>
|
||||
<a href="mailto:moi@example.com" class="email">moi@example.com</a></programlisting>
|
||||
<a href="mailto:me@example.com" class="email">me@example.com</a>
|
||||
<script type="text/javascript" language="javascript">
|
||||
<!--
|
||||
{document.write(String.fromCharCode(60,97,32,104,114,101,102,61,34,109,97,105,108,116,111,58,109,101,64,101,120,97,109,112,108,101,46,99,111,109,34,32,62,109,101,64,101,120,97,109,112,108,101,46,99,111,109,60,47,97,62))}
|
||||
//-->
|
||||
</script></programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.15 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.16 Maintainer: gerald Status: ready -->
|
||||
<chapter id="language.modifiers">
|
||||
<title>Modificateurs de variables</title>
|
||||
<para>
|
||||
@@ -66,9 +66,9 @@
|
||||
$security_settings['MODIFIER_FUNCS']</link>.
|
||||
</para>
|
||||
|
||||
&designers.language-modifiers.language-modifier-cat;
|
||||
&designers.language-modifiers.language-modifier-capitalize;
|
||||
&designers.language-modifiers.language-modifier-count-characters;
|
||||
&designers.language-modifiers.language-modifier-cat;
|
||||
&designers.language-modifiers.language-modifier-count-paragraphs;
|
||||
&designers.language-modifiers.language-modifier-count-sentences;
|
||||
&designers.language-modifiers.language-modifier-count-words;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.modifier.capitalize">
|
||||
<title>capitalize</title>
|
||||
<informaltable frame="all">
|
||||
@@ -68,6 +68,11 @@ Le Nouveau Php5 Est Vraiment Performant !
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="language.modifier.lower">lower</link> et
|
||||
<link linkend="language.modifier.upper">upper</link>
|
||||
</para>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.modifier.count.characters">
|
||||
<title>count_characters</title>
|
||||
<informaltable frame="all">
|
||||
@@ -47,7 +47,7 @@ $smarty->display('index.tpl');
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
Ou index.tpl est:
|
||||
O<> index.tpl est:
|
||||
</para>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
@@ -67,6 +67,12 @@ Vagues de froid li
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="language.modifier.count.paragraphs">count_paragraphs</link>,
|
||||
<link linkend="language.modifier.count.sentences">count_sentences</link> et
|
||||
<link linkend="language.modifier.count.words">count_words</link>
|
||||
</para>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.modifier.count.paragraphs">
|
||||
<title>count_paragraphs</title>
|
||||
<para>
|
||||
@@ -18,7 +18,7 @@ $smarty->display('index.tpl');
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
Ou index.tpl est:
|
||||
O<> index.tpl est:
|
||||
</para>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
@@ -33,6 +33,12 @@ La guerre apporte la paix, au prix de la vie des innocents.
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="language.modifier.count.characters">count_characters</link>,
|
||||
<link linkend="language.modifier.count.sentences">count_sentences</link> et
|
||||
<link linkend="language.modifier.count.words">count_words</link>.
|
||||
</para>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.modifier.count.sentences">
|
||||
<title>count_sentences</title>
|
||||
<para>
|
||||
@@ -20,7 +20,7 @@ $smarty->display('index.tpl');
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
Where index.tpl is:
|
||||
O<> index.tpl est :
|
||||
</para>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
@@ -29,18 +29,23 @@ $smarty->display('index.tpl');
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
Donne <20> l'<27>cran:
|
||||
Affichera :
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
Deux navires rentrent en collision
|
||||
- Un des deux coule. Des vaches enrag<61>es blessent un fermier
|
||||
<EFBFBD> coups de haches.
|
||||
|
||||
2
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="language.modifier.count.characters">count_characters</link>,
|
||||
<link linkend="language.modifier.count.paragraphs">count_paragraphs</link> et
|
||||
<link linkend="language.modifier.count.words">count_words</link>.
|
||||
</para>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.modifier.count.words">
|
||||
<title>count_words</title>
|
||||
<para>
|
||||
@@ -20,7 +20,7 @@ $smarty->display('index.tpl');
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
Ou index.tpl est:
|
||||
O<EFBFBD> index.tpl est:
|
||||
</para>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
@@ -29,7 +29,7 @@ $smarty->display('index.tpl');
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
Donne <20> l'<27>cran:
|
||||
Affichera :
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
@@ -38,6 +38,12 @@ Un anneau pour les gouverner tous.
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="language.modifier.count.characters">count_characters</link>,
|
||||
<link linkend="language.modifier.count.paragraphs">count_paragraphs</link> et
|
||||
<link linkend="language.modifier.count.sentences">count_sentences</link>.
|
||||
</para>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.modifier.date.format">
|
||||
<title>date_format</title>
|
||||
<informaltable frame="all">
|
||||
@@ -15,7 +15,7 @@
|
||||
<entry>Position du param<61>tre</entry>
|
||||
<entry>Type</entry>
|
||||
<entry>Requis</entry>
|
||||
<entry>Defaut</entry>
|
||||
<entry>D<EFBFBD>faut</entry>
|
||||
<entry>Description</entry>
|
||||
</row>
|
||||
</thead>
|
||||
@@ -59,7 +59,7 @@ $smarty->display('index.tpl');
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
ou index.tpl est:
|
||||
O<EFBFBD> index.tpl est:
|
||||
</para>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
@@ -210,10 +210,11 @@ en tant que premier jour de la premi
|
||||
<note>
|
||||
<title>Note aux d<>veloppeurs</title>
|
||||
<para>
|
||||
NOTE AUX DEVELOPPEURS: date_format est un alias de la fonction
|
||||
PHP strftime(). Il est probable que vous disposiez de plus ou moins d'options
|
||||
disponibles selon le syst<73>me sur lequel PHP a <20>t<EFBFBD> compil<69> (strftime ()).
|
||||
Reportez vous <20> l'aide de votre syst<73>me pour une liste compl<70>te des
|
||||
date_format est un alias de la fonction
|
||||
PHP <ulink url="&url.php-manual;strftime">strftime()</ulink>.
|
||||
Il est probable que vous disposiez de plus ou moins d'options
|
||||
disponibles selon le syst<73>me sur lequel PHP a <20>t<EFBFBD> compil<EFBFBD>.
|
||||
Reportez-vous <20> l'aide de votre syst<73>me pour une liste compl<70>te des
|
||||
param<61>tres disponibles.
|
||||
</para>
|
||||
</note>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.modifier.escape">
|
||||
<title>escape</title>
|
||||
<informaltable frame="all">
|
||||
@@ -17,7 +17,7 @@
|
||||
<entry>Type</entry>
|
||||
<entry>Requis</entry>
|
||||
<entry>Valeurs possibles</entry>
|
||||
<entry>Defaut</entry>
|
||||
<entry>D<EFBFBD>faut</entry>
|
||||
<entry>Description</entry>
|
||||
</row>
|
||||
</thead>
|
||||
@@ -52,7 +52,7 @@ $smarty->display('index.tpl');
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
Ou index.tpl est:
|
||||
O<EFBFBD> index.tpl est:
|
||||
</para>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
@@ -80,6 +80,10 @@ Ce qui donne
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
<para>
|
||||
Voir aussi la
|
||||
<link linkend="language.escaping">d<EFBFBD>sactivation de l'analyse de Smarty</link>.
|
||||
</para>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.modifier.lower">
|
||||
<title>lower</title>
|
||||
<para>
|
||||
@@ -18,7 +18,7 @@ $smarty->display('index.tpl');
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
Ou index.tpl est :
|
||||
O<> index.tpl est :
|
||||
</para>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
@@ -27,7 +27,7 @@ Ou index.tpl est :
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
Ce qui donne <20> l'<27>cran :
|
||||
Affichera :
|
||||
</para>
|
||||
<screen>
|
||||
<![CDATA[
|
||||
@@ -36,6 +36,11 @@ deux suspects se sont sauv
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="language.modifier.upper">upper</link> et
|
||||
<link linkend="language.modifier.capitalize">Capitalize</link>.
|
||||
</para>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.modifier.upper">
|
||||
<title>upper</title>
|
||||
<para>
|
||||
@@ -19,7 +19,7 @@ $smarty->display('index.tpl');
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
Ou index.tpl est:
|
||||
O<> index.tpl est:
|
||||
</para>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
@@ -28,13 +28,18 @@ Ou index.tpl est:
|
||||
]]>
|
||||
</programlisting>
|
||||
<para>
|
||||
Ce qui donne en sortie :
|
||||
Affichera :
|
||||
</para>
|
||||
<screen>
|
||||
Si l'attaque n'est pas mise en place rapidement, cel<65> risque de durer longtemps.
|
||||
SI L'ATTAQUE N'EST PAS MISE EN PLACE RAPIDEMENT, CEL<45> RISQUE DE DURER LONGTEMPS.
|
||||
</screen>
|
||||
</example>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="language.modifier.lower">lower</link> et
|
||||
<link linkend="language.modifier.capitalize">capitalize</link>.
|
||||
</para>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.4 Maintainer: gerald Status: ready -->
|
||||
<!-- EN-Revision: 1.5 Maintainer: gerald Status: ready -->
|
||||
<sect1 id="language.variables.smarty">
|
||||
<title>Variable r<>serv<72>e {$smarty}</title>
|
||||
<para>
|
||||
@@ -15,7 +15,6 @@
|
||||
et SESSION peuvent <20>tre utilis<69>es comme dans l'exemple suivant:
|
||||
</para>
|
||||
<example>
|
||||
|
||||
<title>Afficher des variables de requ<71>te</title>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
@@ -53,7 +52,6 @@
|
||||
de variable date <20> des fins d'affichage.
|
||||
</para>
|
||||
<example>
|
||||
|
||||
<title>utilisation de {$smarty.now}</title>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
@@ -69,7 +67,6 @@
|
||||
Vous pouvez directement acc<63>der aux constantes PHP.
|
||||
</para>
|
||||
<example>
|
||||
|
||||
<title>Utiliser {$smarty.const}</title>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
@@ -82,8 +79,9 @@
|
||||
<sect2 id="language.variables.smarty.capture">
|
||||
<title>{$smarty.capture}</title>
|
||||
<para>
|
||||
La capture r<>alis<69>e via {capture}..{/capture} peut <20>tre r<>cup<75>r<EFBFBD>e
|
||||
par l'interm<72>diaire de la variable {$smarty}. Voir la section
|
||||
La capture r<>alis<69>e via
|
||||
<link linkend="language.function.capture">{capture}..{/capture}</link>
|
||||
peut <20>tre r<>cup<75>r<EFBFBD>e par l'interm<72>diaire de la variable {$smarty}. Voir la section
|
||||
sur <link linkend="language.function.capture">capture</link> pour un
|
||||
exemple <20> ce sujet.
|
||||
</para>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready -->
|
||||
<refentry id="api.display">
|
||||
<refnamediv>
|
||||
<refname>display</refname>
|
||||
@@ -50,7 +50,7 @@ if(!$smarty->is_cached("index.tpl")) {
|
||||
|
||||
}
|
||||
|
||||
// display the output
|
||||
// affichage
|
||||
$smarty->display("index.tpl");
|
||||
?>
|
||||
]]>
|
||||
@@ -82,6 +82,11 @@ $smarty->display("db:header.tpl");
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="api.fetch">fetch()</link> et
|
||||
<link linkend="api.template.exists">template_exists</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready -->
|
||||
<refentry id="api.fetch">
|
||||
<refnamediv>
|
||||
<refname>fetch</refname>
|
||||
@@ -56,7 +56,7 @@ if(!$smarty->is_cached("index.tpl"))
|
||||
// r<>cup<75>re le r<>sultat
|
||||
$output = $smarty->fetch("index.tpl");
|
||||
|
||||
// fait quelque chose avec $output
|
||||
// fait quelque chose avec $output ici
|
||||
|
||||
echo $output;
|
||||
?>
|
||||
@@ -64,6 +64,11 @@ echo $output;
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="api.display">display()</link> et
|
||||
<link linkend="api.template.exists">template_exists</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready -->
|
||||
<refentry id="api.register.object">
|
||||
<refnamediv>
|
||||
<refname>register_object</refname>
|
||||
@@ -22,6 +22,10 @@
|
||||
<link linkend="advanced.features.objects">objet</link> de
|
||||
ce manuel pour des exemples.
|
||||
</para>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="api.unregister.object">unregister_object</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready -->
|
||||
<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready -->
|
||||
<refentry id="api.unregister.object">
|
||||
<refnamediv>
|
||||
<refname>unregister_object</refname>
|
||||
@@ -15,6 +15,11 @@
|
||||
<para>
|
||||
Utilis<69>e pour d<>sallouer un objet.
|
||||
</para>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="api.register.object">register_object</link> et
|
||||
<link linkend="advanced.features.objects">object section</link>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
@@ -1,13 +1,39 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready -->
|
||||
<sect1 id="variable.compile.id">
|
||||
<title>$compile_id</title>
|
||||
<para>
|
||||
Identifiant persistant du compilateur. On peut passer le m<>me compile_id
|
||||
a chaque appel de fonction mais une alternative consiste a r<>gler ce
|
||||
a chaque appel de fonction mais une alternative consiste <EFBFBD> r<>gler ce
|
||||
compile_id, qui sera utilis<69> implicitement.
|
||||
</para>
|
||||
<para>
|
||||
Avec un compile_id, vous pouvez contourner la limitation qui fait
|
||||
que vous ne pouvez pas utiliser le m<>me compile_id pour
|
||||
diff<66>rents template_dirs. Si vous d<>finissez un compile_id distinct pour
|
||||
chaque template_dir, alors Smarty indique aux templates compil<69>s <20> part
|
||||
par leur compile_id.
|
||||
</para>
|
||||
<para>
|
||||
Si vous avez par exemple un pr<70>-filtre qui traduit vos templates
|
||||
au moment de la compilation, alors, vous devriez utiliser le langage
|
||||
courant comme compile_id et vous devriez obtenir un jeu
|
||||
de templates compil<69>s pour chaque langage que vous utiliserez.
|
||||
</para>
|
||||
<para>
|
||||
Un autre exemple serait d'utiliser le m<>me dossier de compilation
|
||||
<20> travers de multiples domaines / vhosts. eg:
|
||||
</para>
|
||||
<example>
|
||||
<title>compile_id</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
$smarty->compile_id = $_SERVER['SERVER_NAME'];
|
||||
$smarty->compile_dir = 'chemin/vers/shared_compile_dir';
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
@@ -1,13 +1,15 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: didou Status: ready -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: didou Status: ready -->
|
||||
<sect1 id="variable.error.reporting">
|
||||
<title>$error_reporting</title>
|
||||
<para>
|
||||
Lorsque cette valeur est configur<75>e <20> une valeur non nulle,
|
||||
sa valeur est utilis<69>e comme le error_reporting-level de PHP
|
||||
<20> l'int<6E>rieur de display() et fetch(). Lorsque le d<>boguage
|
||||
est ignor<EFBFBD> et le error-level non-modifi<66>.
|
||||
<20> l'int<6E>rieur de <link linkend="api.display">display()</link>
|
||||
et <link linkend="api.fetch">fetch()</link>. Lorsque le <link
|
||||
linkend="chapter.debugging.console">d<EFBFBD>boguage</link>
|
||||
est ignor<6F>, cette valeur est ignor<6F>e et error-level est non-modifi<66>.
|
||||
</para>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
@@ -1,12 +1,16 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready -->
|
||||
<sect1 id="variable.left.delimiter">
|
||||
<title>$left_delimiter</title>
|
||||
<para>
|
||||
Il s'agit du d<>limiteur gauche utilis<69> par le moteur de templates. La
|
||||
valeur par d<>faut est "{".
|
||||
</para>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="variable.right.delimiter">$right_delimiter</link>.
|
||||
</para>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
@@ -1,12 +1,16 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready -->
|
||||
<sect1 id="variable.right.delimiter">
|
||||
<title>$right_delimiter</title>
|
||||
<para>
|
||||
Il s'agit du d<>limiteur droit utilis<69> par le moteur de templates.
|
||||
La valeur par d<>faut est "}".
|
||||
</para>
|
||||
<para>
|
||||
Voir aussi
|
||||
<link linkend="variable.left.delimiter">$left_delimiter</link>.
|
||||
</para>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
Reference in New Issue
Block a user