mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-15 15:09:51 +01:00
WS and added revcheck
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<chapter id="bugs">
|
||||
<title>BUGS</title>
|
||||
<para>
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.4 Maintainer: didou Status: ready -->
|
||||
@@ -44,15 +48,15 @@
|
||||
Vous pouvez rem<65>dier <20> cela en lui assignant une valeur par d<>faut
|
||||
avec la fonction <link linkend="language.function.assign">assign</link>.
|
||||
</para>
|
||||
<example>
|
||||
<title>assigner une valeur par d<>faut <20> une variable de template</title>
|
||||
<example>
|
||||
<title>assigner une valeur par d<>faut <20> une variable de template</title>
|
||||
<programlisting>
|
||||
{* faites cela qq part en haut de votre template *}
|
||||
{assign var="title" value=$title|default:"no title"}
|
||||
|
||||
{* si $title est vide, il contiendra alors no "no title" *}
|
||||
{$title}</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<sect1 id="tips.passing.vars">
|
||||
<title>Passage du titre <20> un template d'en-t<>te</title>
|
||||
@@ -62,8 +66,8 @@
|
||||
Mais comment faire si l'en-t<>te doit avoir un titre diff<66>rent, selon la page
|
||||
d'o<> on vient ? Vous pouvez passer le titre <20> l'en-t<>te quand il est inclus.
|
||||
</para>
|
||||
<example>
|
||||
<title>passer le titre au template d'en-t<>te</title>
|
||||
<example>
|
||||
<title>passer le titre au template d'en-t<>te</title>
|
||||
<programlisting>
|
||||
|
||||
mainpage.tpl
|
||||
@@ -96,7 +100,7 @@ footer.tpl
|
||||
----------
|
||||
</BODY>
|
||||
</HTML></programlisting>
|
||||
</example>
|
||||
</example>
|
||||
<para>
|
||||
Quand la page principale est con<6F>ue, le titre "Main page" est pass<73> <20> header.tpl
|
||||
et sera donc utilis<69> pour le titre. Quand la page d'archive est con<6F>ue,
|
||||
@@ -120,8 +124,8 @@ footer.tpl
|
||||
sous la forme de timestamps Unix ou MySQL, ou tout autre format de dates
|
||||
que comprend strtotime().
|
||||
</para>
|
||||
<example>
|
||||
<title>utilisation de date_format</title>
|
||||
<example>
|
||||
<title>utilisation de date_format</title>
|
||||
<programlisting>
|
||||
{$startDate|date_format}
|
||||
|
||||
@@ -140,14 +144,14 @@ OUTPUT:
|
||||
{if $date1 < $date2}
|
||||
...
|
||||
{/if}</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
<para>
|
||||
En utilisant la fonction {html_select_date} dans un template, le programmeur
|
||||
veut en g<>n<EFBFBD>ral convertir le r<>sultat d'un formulaire en un timestamp.
|
||||
Voici une fonction qui devrait vous <20>tre utile.
|
||||
</para>
|
||||
<example>
|
||||
<title>conversion des <20>l<EFBFBD>ments date d'un formulaire en timestamp</title>
|
||||
<example>
|
||||
<title>conversion des <20>l<EFBFBD>ments date d'un formulaire en timestamp</title>
|
||||
<programlisting>
|
||||
// cela suppose que vos <20>l<EFBFBD>ments de formulaire soient nomm<6D>s
|
||||
// startDate_Day, startDate_Month, startDate_Year
|
||||
@@ -165,7 +169,7 @@ function makeTimeStamp($year="",$month="",$day="")
|
||||
|
||||
return mktime(0,0,0,$month,$day,$year);
|
||||
}</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<sect1 id="tips.wap">
|
||||
<title>WAP/WML</title>
|
||||
@@ -179,8 +183,8 @@ function makeTimeStamp($year="",$month="",$day="")
|
||||
rien n'est transmise au navigateur avant l'appel du template, sans quoi
|
||||
la modification de l'en-t<>te <20>chouera.
|
||||
</para>
|
||||
<example>
|
||||
<title>utilisation d'insert pour <20>crire un en-t<>te Content-Type WML</title>
|
||||
<example>
|
||||
<title>utilisation d'insert pour <20>crire un en-t<>te Content-Type WML</title>
|
||||
<programlisting>
|
||||
// assurez-vous que Apache est configur<75> pour les extensions .wml !
|
||||
// mettez cette fonction qq part dans votre applications
|
||||
@@ -218,7 +222,7 @@ Pretty easy isn't it?
|
||||
</p>
|
||||
</card>
|
||||
</wml></programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<sect1 id="tips.componentized.templates">
|
||||
<title>Templates composants</title>
|
||||
@@ -247,8 +251,8 @@ Pretty easy isn't it?
|
||||
Ainsi, on ne se soucie plus d'o<> vient le contenu du template,
|
||||
tout vient comme un seul et unique composant.
|
||||
</para>
|
||||
<example>
|
||||
<title>template composant</title>
|
||||
<example>
|
||||
<title>template composant</title>
|
||||
<programlisting>
|
||||
{* Smarty *}
|
||||
|
||||
@@ -270,7 +274,7 @@ Pretty easy isn't it?
|
||||
{/php}
|
||||
|
||||
Stock Name: {$ticker_name} Stock Price: {$ticker_price}</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
<para>
|
||||
A partir de Smarty 1.5.0, il y a m<>me un moyen plus propre. Vous
|
||||
pouvez inclure du PHP dans votre template avec la balise {include_php ...}.
|
||||
@@ -279,8 +283,8 @@ Stock Name: {$ticker_name} Stock Price: {$ticker_price}</programlisting>
|
||||
linkend="language.function.include.php">include_php</link> pour plus
|
||||
d'informations.
|
||||
</para>
|
||||
<example>
|
||||
<title>template composant avec include_php</title>
|
||||
<example>
|
||||
<title>template composant avec include_php</title>
|
||||
<programlisting>
|
||||
load_ticker.php
|
||||
---------------
|
||||
@@ -309,7 +313,7 @@ index.tpl
|
||||
{include_php file="load_ticker.php"}
|
||||
|
||||
Stock Name: {$ticker_name} Stock Price: {$ticker_price}</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<sect1 id="tips.obfuscating.email">
|
||||
<title>Dissimuler les adresses email</title>
|
||||
@@ -321,8 +325,8 @@ Stock Name: {$ticker_name} Stock Price: {$ticker_price}</programlisting>
|
||||
au milieu de votre source HTML, sans que cela ne g<>ne l'affichage sur le
|
||||
navigateur Web. Cela est fait gr<67>ce au plugin mailto.
|
||||
</para>
|
||||
<example>
|
||||
<title>exemple de dissimulation d'une adresse email</title>
|
||||
<example>
|
||||
<title>exemple de dissimulation d'une adresse email</title>
|
||||
<programlisting>
|
||||
|
||||
index.tpl
|
||||
@@ -332,7 +336,7 @@ Send inquiries to
|
||||
{mailto address=$EmailAddress encode="javascript" subject="Hello"}
|
||||
|
||||
</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
<note>
|
||||
<title>Note technique</title>
|
||||
<para>
|
||||
@@ -342,24 +346,24 @@ Send inquiries to
|
||||
</para>
|
||||
</note>
|
||||
</sect1>
|
||||
</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
|
||||
-->
|
||||
</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
|
||||
-->
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<chapter id="troubleshooting">
|
||||
<title>Diagnostic des erreurs</title>
|
||||
<para></para>
|
||||
@@ -10,15 +11,15 @@
|
||||
balises manquants ou de noms de variables malform<72>s. Dans ce cas-l<>,
|
||||
vous verrez appara<72>tre une erreur semblable <20> :
|
||||
</para>
|
||||
<example>
|
||||
<title>erreurs Smarty</title>
|
||||
<example>
|
||||
<title>erreurs Smarty</title>
|
||||
<programlisting>
|
||||
Warning: Smarty: [in index.tpl line 4]: syntax error: unknown tag - '%blah'
|
||||
in /path/to/smarty/Smarty.class.php on line 1041
|
||||
|
||||
Fatal error: Smarty: [in index.tpl line 28]: syntax error: missing section name
|
||||
in /path/to/smarty/Smarty.class.php on line 1041</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
|
||||
<para>
|
||||
Smarty vous indique le nom du template, le num<75>ro de la ligne et l'erreur.
|
||||
@@ -32,11 +33,11 @@ Fatal error: Smarty: [in index.tpl line 28]: syntax error: missing section name
|
||||
rep<65>r<EFBFBD> dans la phase de compilation PHP du template compil<69>.
|
||||
</para>
|
||||
|
||||
<example>
|
||||
<title>erreur d'analyse PHP</title>
|
||||
<example>
|
||||
<title>erreur d'analyse PHP</title>
|
||||
<programlisting>
|
||||
Parse error: parse error in /path/to/smarty/templates_c/index.tpl.php on line 75</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
|
||||
<para>
|
||||
Quand vous rencontrez une erreur d'analyse PHP, le num<75>ro de la ligne
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<bookinfo id="bookinfo">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<bookinfo id="bookinfo">
|
||||
<title>Smarty - le moteur et compilateur de templates PHP</title>
|
||||
<authorgroup id="authors">
|
||||
<author>
|
||||
@@ -26,7 +27,7 @@
|
||||
<year>2001-2004</year>
|
||||
<holder>ispi of Lincoln, Inc.</holder>
|
||||
</copyright>
|
||||
</bookinfo>
|
||||
</bookinfo>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $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>
|
||||
<para>
|
||||
Il existe une console de d<>bogage dans Smarty. La console vous indique
|
||||
@@ -39,23 +39,23 @@
|
||||
</para>
|
||||
</note>
|
||||
</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
|
||||
-->
|
||||
<!-- 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
|
||||
-->
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<chapter id="config.files">
|
||||
<chapter id="config.files">
|
||||
<title>Fichiers de configuration</title>
|
||||
<para>
|
||||
Les fichiers de configuration sont un moyen interressant pour g<>rer
|
||||
@@ -77,7 +77,7 @@ pass=foobar
|
||||
<20>tes s<>r que ces derniers n'acc<63>deront pas <20> ces donn<6E>es de configuration
|
||||
en les chargeant depuis le template.
|
||||
</para>
|
||||
</chapter>
|
||||
</chapter>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<chapter id="language.basic.syntax">
|
||||
<chapter id="language.basic.syntax">
|
||||
<title>Bases syntaxiques</title>
|
||||
<para>
|
||||
Toutes les balises Smarty sont entour<75>es de d<>limiteurs. Par d<>faut,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: didou Status: ready -->
|
||||
<sect1 id="language.escaping">
|
||||
<sect1 id="language.escaping">
|
||||
<title>D<EFBFBD>sactiver l'analyse de Smarty</title>
|
||||
<para>
|
||||
Il est quelquesfois bien ou m<>me n<>cessaire de faire ignorer certaines sections
|
||||
@@ -53,24 +53,24 @@ dosomething();
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: didou Status: ready -->
|
||||
<sect1 id="language.math">
|
||||
<sect1 id="language.math">
|
||||
<title>Math<EFBFBD>matiques</title>
|
||||
<para>
|
||||
Les math<74>matiques peuvent <20>tre directement appliqu<71>es aux
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.syntax.attributes">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.syntax.attributes">
|
||||
<title>Param<EFBFBD>tres</title>
|
||||
<para>
|
||||
La plupart des fonctions attendent des param<61>tres qui r<>gissent leur
|
||||
@@ -18,7 +19,7 @@
|
||||
</para>
|
||||
<example>
|
||||
<title>Param<EFBFBD>tres de fonction, syntaxe</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
{include file="header.tpl"}
|
||||
|
||||
{include file=$includeFile}
|
||||
@@ -30,7 +31,7 @@
|
||||
<SELECT name=company>
|
||||
{html_options values=$vals selected=$selected output=$output}
|
||||
</SELECT></programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.syntax.comments">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.syntax.comments">
|
||||
<title>Commentaires</title>
|
||||
<para>
|
||||
Les commentaires dans Smarty sont entour<75>s d'asterisques, de cette
|
||||
@@ -12,7 +13,7 @@
|
||||
</para>
|
||||
<example>
|
||||
<title>Commentaires</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
{* Smarty *}
|
||||
|
||||
{* Inclusion de l'en t<>te *}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.syntax.functions">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.syntax.functions">
|
||||
<title>Fonctions</title>
|
||||
<para>
|
||||
Les balises Smarty affichent une <link linkend="language.variables">variable</link>
|
||||
@@ -10,7 +11,7 @@
|
||||
</para>
|
||||
<example>
|
||||
<title>syntaxe des fonctions</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
{config_load file="colors.conf"}
|
||||
|
||||
{include file="header.tpl"}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.syntax.quotes">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.syntax.quotes">
|
||||
<title>Variables ins<6E>r<EFBFBD>es dans des cha<68>nes de caract<63>res</title>
|
||||
<para>
|
||||
Smarty est capable d'interpr<70>ter les variables ins<6E>r<EFBFBD>es <20> l'int<6E>rieur de
|
||||
@@ -11,7 +12,7 @@
|
||||
</para>
|
||||
<example>
|
||||
<title>Syntaxe d'insertion de variables dans des cha<68>nes</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
EXEMPLE DE SYNTAXE:
|
||||
{func var="test $foo test"} <-- comprends $foo
|
||||
{func var="test $foo_bar test"} <-- comprends $foo_bar
|
||||
@@ -24,7 +25,7 @@ EXEMPLE PRATIQUE:
|
||||
{include file="subdir/$tpl_name.tpl"} <-- remplace $tpl_name avec la valeur
|
||||
{cycle values="one,two,`$smarty.config.myval`"} <-- doit comporter les
|
||||
apostrophes inverses</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<chapter id="language.builtin.functions">
|
||||
<chapter id="language.builtin.functions">
|
||||
<title>Fonctions natives</title>
|
||||
<para>
|
||||
Smarty est fourni en standard avec plusieurs fonctions natives.
|
||||
@@ -24,7 +24,7 @@
|
||||
&designers.language-builtin-functions.language-function-section;
|
||||
&designers.language-builtin-functions.language-function-strip;
|
||||
|
||||
</chapter>
|
||||
</chapter>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,4 +1,14 @@
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/designers/language-builtin-functions/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/designers/language-builtin-functions/clean.php on line 56
|
||||
@@ -9,9 +19,9 @@ Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/designers/l
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/designers/language-builtin-functions/clean.php on line 56
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.function.insert">
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.function.insert">
|
||||
<title>insert</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.function.assign">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.function.assign">
|
||||
<title>assign</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -39,8 +40,8 @@
|
||||
<para>
|
||||
Assign est utilis<69> pour d<>clarer ou modifier des variables de template.
|
||||
</para>
|
||||
<example>
|
||||
<title>assign</title>
|
||||
<example>
|
||||
<title>assign</title>
|
||||
<programlisting>
|
||||
{assign var="name" value="Bob"}
|
||||
|
||||
@@ -49,7 +50,7 @@ La valeur de $name est {$name}.
|
||||
SORTIE:
|
||||
|
||||
La valeur de $name est Bob.</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.function.counter">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.function.counter">
|
||||
<title>counter</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -78,8 +79,8 @@
|
||||
fonction counter sera assign<67>e <20> la variable de template donn<6E>e plut<75>t
|
||||
que d'<27>tre directement affich<63>e.
|
||||
</para>
|
||||
<example>
|
||||
<title>counter</title>
|
||||
<example>
|
||||
<title>counter</title>
|
||||
<programlisting>
|
||||
{* initialisation du compteur *}
|
||||
{counter start=0 skip=2 print=false}
|
||||
@@ -95,7 +96,7 @@ SORTIE:
|
||||
4<br>
|
||||
6<br>
|
||||
8<br></programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.function.cycle">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.function.cycle">
|
||||
<title>cycle</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -89,8 +90,8 @@
|
||||
Si vous d<>finissez l'attribut sp<73>cial "assign", la sortie de la fonction
|
||||
cycle y sera assign<67>e plut<75>t que d'<27>tre directement affich<63>e.
|
||||
</para>
|
||||
<example>
|
||||
<title>cycle</title>
|
||||
<example>
|
||||
<title>cycle</title>
|
||||
<programlisting>
|
||||
{section name=rows loop=$data}
|
||||
<tr bgcolor="{cycle values="#eeeeee,#d0d0d0"}">
|
||||
@@ -110,7 +111,7 @@ SORTIE:
|
||||
<td>3</td>
|
||||
</tr>
|
||||
</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.function.debug">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.function.debug">
|
||||
<title>debug</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.function.eval">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.function.eval">
|
||||
<title>eval</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -64,8 +65,8 @@
|
||||
la sortie sera plac<61>e en cache avec le reste du template.
|
||||
</para>
|
||||
</note>
|
||||
<example>
|
||||
<title>eval</title>
|
||||
<example>
|
||||
<title>eval</title>
|
||||
<programlisting>
|
||||
setup.conf
|
||||
----------
|
||||
@@ -96,7 +97,7 @@ Vous devez sp
|
||||
Vous devez sp<73>cifier un <b>d<EFBFBD>partement</b>.
|
||||
|
||||
</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.function.fetch">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.function.fetch">
|
||||
<title>fetch</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -66,8 +67,8 @@
|
||||
r<>pertoires s<>curis<69> ($secure_dir).
|
||||
</para>
|
||||
</note>
|
||||
<example>
|
||||
<title>fetch</title>
|
||||
<example>
|
||||
<title>fetch</title>
|
||||
<programlisting>
|
||||
{* Inclus du javascript dans votre template *}
|
||||
{fetch file="/export/httpd/www.domain.com/docs/navbar.js"}
|
||||
@@ -83,7 +84,7 @@
|
||||
{if $weather ne ""}
|
||||
<b>{$weather}</b>
|
||||
{/if}</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.function.html.checkboxes">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.function.html.checkboxes">
|
||||
<title>html_checkboxes</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -81,8 +82,8 @@
|
||||
Tous les param<61>tres qui ne sont pas list<73>s ci-dessus sont affich<63>s
|
||||
en tant que paires nom/valeur dans chaque balise <input> cr<63>e.
|
||||
</para>
|
||||
<example>
|
||||
<title>html_checkboxes</title>
|
||||
<example>
|
||||
<title>html_checkboxes</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -122,7 +123,7 @@ SORTIE: (pour les deux exemples)
|
||||
<input type="checkbox" name="id[]" value="1001" checked="checked"><br />
|
||||
<input type="checkbox" name="id[]" value="1002">Jane Johnson<br />
|
||||
<input type="checkbox" name="id[]" value="1003">Charlie Brown<br /></programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.function.html.image">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.function.html.image">
|
||||
<title>html_image</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -91,8 +92,8 @@
|
||||
performances.
|
||||
</para>
|
||||
</note>
|
||||
<example>
|
||||
<title>html_image</title>
|
||||
<example>
|
||||
<title>html_image</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -111,7 +112,7 @@ SORTIE: (possible)
|
||||
<img src="pumpkin.jpg" border="0" width="44" height="68">
|
||||
<img src="/path/under/docroot/pumpkin.jpg" border="0" width="44" height="68">
|
||||
<img src="../path/relative/to/currdir/pumpkin.jpg" border="0" width="44" height="68"></programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.function.html.options">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.function.html.options">
|
||||
<title>html_options</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -83,8 +84,8 @@
|
||||
affich<63>s en tant que paires nom / valeur. Ils sont ignor<6F>s si
|
||||
le param<61>tre optionnel <emphasis>name</emphasis> n'est pas donn<6E>.
|
||||
</para>
|
||||
<example>
|
||||
<title>html_options</title>
|
||||
<example>
|
||||
<title>html_options</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -130,7 +131,7 @@ SORTIE: (valable pour les deux exemples)
|
||||
<option value="1002">Jane Johnson</option>
|
||||
<option value="1003">Charlie Brown</option>
|
||||
</select></programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.function.html.radios">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.function.html.radios">
|
||||
<title>html_radios</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -81,8 +82,8 @@
|
||||
cr<63><72>e.
|
||||
</para>
|
||||
|
||||
<example>
|
||||
<title>html_radios</title>
|
||||
<example>
|
||||
<title>html_radios</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -124,7 +125,7 @@ SORTIE: (both examples)
|
||||
<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>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.function.html.select.date">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.function.html.select.date">
|
||||
<title>html_select_date</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -208,8 +209,8 @@
|
||||
d<>roulantes pour saisir la date. Elle peut afficher n'importe quel
|
||||
jour, mois et ann<6E>e.
|
||||
</para>
|
||||
<example>
|
||||
<title>html_select_date</title>
|
||||
<example>
|
||||
<title>html_select_date</title>
|
||||
<programlisting>
|
||||
{html_select_date}
|
||||
|
||||
@@ -266,11 +267,11 @@ SORTIE:
|
||||
<select name="Date_Year">
|
||||
<option value="2001" selected>2001</option>
|
||||
</select></programlisting>
|
||||
</example>
|
||||
</example>
|
||||
|
||||
|
||||
<example>
|
||||
<title>html_select_date</title>
|
||||
<example>
|
||||
<title>html_select_date</title>
|
||||
<programlisting>
|
||||
|
||||
{* le d<>marage et la fin de l'ann<6E>e peuvent <20>tre relatif <20> l'ann<6E>e courante *}
|
||||
@@ -301,7 +302,7 @@ SORTIE: (current year is 2000)
|
||||
<option value="2000" selected>2000</option>
|
||||
<option value="2001">2001</option>
|
||||
</select></programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.function.html.select.time">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.function.html.select.time">
|
||||
<title>html_select_time</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -140,8 +141,8 @@
|
||||
d<>roulantes pour saisir une heure. Elle prends en charge l'heure,
|
||||
les minutes, les secondes et le m<>ridian.
|
||||
</para>
|
||||
<example>
|
||||
<title>html_select_time</title>
|
||||
<example>
|
||||
<title>html_select_time</title>
|
||||
<programlisting>
|
||||
{html_select_time use_24_hours=true}
|
||||
|
||||
@@ -302,7 +303,7 @@ SORTIE:
|
||||
<option value="am" selected>AM</option>
|
||||
<option value="pm">PM</option>
|
||||
</select></programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.function.html.table">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.function.html.table">
|
||||
<title>html_table</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -78,8 +79,8 @@
|
||||
<emphasis>trailpad</emphasis> est la valeur avec laquelle remplir
|
||||
les cellules restantes de la derni<6E>re ligne, s'il y en a une.
|
||||
</para>
|
||||
<example>
|
||||
<title>html_table</title>
|
||||
<example>
|
||||
<title>html_table</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -112,7 +113,7 @@ SORTIE:
|
||||
<tr bgcolor="#dddddd"><td>5</td><td>6</td><td>7</td><td>8</td></tr>
|
||||
<tr bgcolor="#eeeeee"><td>9</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
|
||||
</table></programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.function.mailto">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.function.mailto">
|
||||
<title>mailto</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -104,8 +105,8 @@
|
||||
Vous pouvez <20>galement utiliser un encodage hexad<61>cimal.
|
||||
</para>
|
||||
</note>
|
||||
<example>
|
||||
<title>mailto</title>
|
||||
<example>
|
||||
<title>mailto</title>
|
||||
<programlisting>
|
||||
{mailto address="me@domain.com"}
|
||||
{mailto address="moi@domaine.com" text="send me some mail"}
|
||||
@@ -128,7 +129,7 @@ SORTIE:
|
||||
<a href="mailto:moi@domaine.com?subject=Hello%20to%20you%21" >moi@domaine.com</a>
|
||||
<a href="mailto:moi@domaine.com?cc=you@domain.com%2Cthey@domain.com" >moi@domaine.com</a>
|
||||
<a href="mailto:moi@domaine.com" class="email">moi@domaine.com</a></programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.function.math">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.function.math">
|
||||
<title>math</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -86,8 +87,8 @@
|
||||
une boucle section.
|
||||
</para>
|
||||
</note>
|
||||
<example>
|
||||
<title>math</title>
|
||||
<example>
|
||||
<title>math</title>
|
||||
<programlisting>
|
||||
{* $height=4, $width=5 *}
|
||||
|
||||
@@ -126,7 +127,7 @@ SORTIE:
|
||||
SORTIE:
|
||||
|
||||
9.44</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.function.popup.init">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.function.popup.init">
|
||||
<title>popup_init</title>
|
||||
<para>
|
||||
popup est une int<6E>gration de overLib, une librairie capable de r<>aliser
|
||||
@@ -18,12 +19,12 @@
|
||||
indiquez le chemin relatif <20> ce fichier dans l'attribut src de
|
||||
popup_init.
|
||||
</para>
|
||||
<example>
|
||||
<title>popup_init</title>
|
||||
<example>
|
||||
<title>popup_init</title>
|
||||
<programlisting>
|
||||
{* popup_init doit <20>tre appel<65> une fois en d<>but de page. *}
|
||||
{popup_init src="/javascripts/overlib.js"}</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.function.popup">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.function.popup">
|
||||
<title>popup</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -403,8 +404,8 @@
|
||||
<para>
|
||||
popup est utilis<69> pour cr<63>er une fen<65>tre popup javascript.
|
||||
</para>
|
||||
<example>
|
||||
<title>popup</title>
|
||||
<example>
|
||||
<title>popup</title>
|
||||
<programlisting>
|
||||
{* popup_init doit <20>tre appel<65> en haut de votre page *}
|
||||
{popup_init src="/javascripts/overlib.js"}
|
||||
@@ -419,7 +420,7 @@ text="<UL><LI>links<LI>pages<LI>images</UL>" snapx
|
||||
SORTIE:
|
||||
|
||||
(allez sur le site officiel de Smarty pour des exemples.)</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.function.textformat">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.function.textformat">
|
||||
<title>textformat</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -96,8 +97,8 @@
|
||||
chaque attribut. Actuellement, seul le style pr<70>d<EFBFBD>fini "email" est
|
||||
disponible.
|
||||
</para>
|
||||
<example>
|
||||
<title>textformat</title>
|
||||
<example>
|
||||
<title>textformat</title>
|
||||
<programlisting>
|
||||
{textformat wrap=40}
|
||||
|
||||
@@ -236,7 +237,7 @@ bar foo foo. bar foo bar foo foo. bar foo bar foo foo. bar foo bar foo
|
||||
foo.
|
||||
|
||||
</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.capitalize">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.capitalize">
|
||||
<title>capitalize</title>
|
||||
<para>
|
||||
Met la premi<6D>re lettre de chaque mot d'une variable en majuscule.
|
||||
</para>
|
||||
<example>
|
||||
<title>capitalize</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
$smarty = new Smarty;
|
||||
@@ -23,7 +24,7 @@ SORTIE:
|
||||
|
||||
La police commence une campagne de sensibilisation contre la violence routi<74>re.
|
||||
La Police Commence Une Campagne De Sensibilisation Contre La Violence Routi<74>re.</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.cat">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.cat">
|
||||
<title>cat</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -32,8 +33,8 @@
|
||||
<para>
|
||||
Cette valeur est concat<61>n<EFBFBD>e <20> la variable donn<6E>e.
|
||||
</para>
|
||||
<example>
|
||||
<title>cat</title>
|
||||
<example>
|
||||
<title>cat</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -48,7 +49,7 @@ index.tpl:
|
||||
SORTIE:
|
||||
|
||||
Les devins ont pr<70>vus que le monde existera toujours demain.</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.count.characters">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.count.characters">
|
||||
<title>count_characters</title>
|
||||
<para>
|
||||
Compte le nombre de caract<63>res dans une variable.
|
||||
</para>
|
||||
<example>
|
||||
<title>count_characters</title>
|
||||
<example>
|
||||
<title>count_characters</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -24,7 +25,7 @@ SORTIE:
|
||||
Vagues de froid li<6C>es <20> la temp<6D>rature.
|
||||
39
|
||||
</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.count.paragraphs">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.count.paragraphs">
|
||||
<title>count_paragraphs</title>
|
||||
<para>
|
||||
Compte le nombre de paragraphes dans une variable.
|
||||
</para>
|
||||
<example>
|
||||
<title>count_paragraphs</title>
|
||||
<example>
|
||||
<title>count_paragraphs</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -23,7 +24,7 @@ SORTIE:
|
||||
|
||||
La guerre apporte la paix, au prix de la vie des innocents.
|
||||
1</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.count.sentences">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.count.sentences">
|
||||
<title>count_sentences</title>
|
||||
<para>
|
||||
Compte le nombre de phrases dans une variable.
|
||||
</para>
|
||||
<example>
|
||||
<title>count_sentences</title>
|
||||
<example>
|
||||
<title>count_sentences</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -27,7 +28,7 @@ Deux navires rentrent en collision
|
||||
<EFBFBD> coups de haches.
|
||||
|
||||
2</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.count.words">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.count.words">
|
||||
<title>count_words</title>
|
||||
<para>
|
||||
Compte le nombre de mots dans une variable.
|
||||
</para>
|
||||
<example>
|
||||
<title>count_words</title>
|
||||
<example>
|
||||
<title>count_words</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -23,7 +24,7 @@ SORTIE:
|
||||
|
||||
Un anneau pour les gouverner tous.
|
||||
6</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.date.format">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.date.format">
|
||||
<title>date_format</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -45,8 +46,8 @@
|
||||
Si la date pass<73>e <20> date_format est vide, et qu'un second param<61>tre
|
||||
est donn<6E>, ce dernier sera utilis<69> comme <20>tant la date <20> formater.
|
||||
</para>
|
||||
<example>
|
||||
<title>date_format</title>
|
||||
<example>
|
||||
<title>date_format</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -72,9 +73,9 @@ Tuesday, February 6, 2001
|
||||
Feb 5, 2001
|
||||
Monday, February 5, 2001
|
||||
14:33:00</programlisting>
|
||||
</example>
|
||||
<example>
|
||||
<title>date_format indicateurs de convertion</title>
|
||||
</example>
|
||||
<example>
|
||||
<title>date_format indicateurs de convertion</title>
|
||||
<programlisting>
|
||||
%a - Abr<62>viation du jour de la semaine, selon les param<61>tres locaux.
|
||||
|
||||
@@ -162,7 +163,7 @@ 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
|
||||
param<EFBFBD>tres disponibles.</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.default">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.default">
|
||||
<title>default</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -35,8 +36,8 @@
|
||||
Si la variable est vide ou ind<6E>finie, la valeur donn<6E>e est affich<63>e
|
||||
en lieu et place. Default attends un seul argument.
|
||||
</para>
|
||||
<example>
|
||||
<title>default</title>
|
||||
<example>
|
||||
<title>default</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -53,7 +54,7 @@ SORTIE:
|
||||
|
||||
Les portes de la moria restent ferm<72>es.
|
||||
pas de titre</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.escape">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.escape">
|
||||
<title>escape</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="6">
|
||||
@@ -39,8 +40,8 @@
|
||||
hexad<61>cimales, les entit<69>s hexad<61>cimales ou javascript.
|
||||
Par d<>faut, ce param<61>tre est html.
|
||||
</para>
|
||||
<example>
|
||||
<title>escape</title>
|
||||
<example>
|
||||
<title>escape</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -67,7 +68,7 @@ SORTIE:
|
||||
%27Stiff+Opposition+Expected+to+Casketless+Funeral+Plan%27
|
||||
\'Stiff Opposition Expected to Casketless Funeral Plan\'
|
||||
<a href="mailto:%62%6f%62%40%6d%65%2e%6e%65%74">&#x62;&#x6f;&#x62;&#x40;&#x6d;&#x65;&#x2e;&#x6e;&#x65;&#x74;</a></programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.indent">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.indent">
|
||||
<title>indent</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -43,8 +44,8 @@
|
||||
pouvez sp<73>cifier le caract<63>re <20> utiliser pour l'indentation (utilisez
|
||||
"\t" pour les tabulations).
|
||||
</para>
|
||||
<example>
|
||||
<title>indent</title>
|
||||
<example>
|
||||
<title>indent</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -72,7 +73,7 @@ Il fera noir cette nuit.
|
||||
|
||||
Il fera noir cette nuit.
|
||||
</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.lower">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.lower">
|
||||
<title>lower</title>
|
||||
<para>
|
||||
Met une variable en minuscules.
|
||||
</para>
|
||||
<example>
|
||||
<title>lower</title>
|
||||
<example>
|
||||
<title>lower</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -23,7 +24,7 @@ SORTIE:
|
||||
|
||||
Deux Suspects Se Sont Sauv<75>s.
|
||||
deux suspects se sont sauv<75>s.</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.nl2br">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.nl2br">
|
||||
<title>nl2br</title>
|
||||
<para>
|
||||
Transforme toutes les fins de lignes en balises <br />.
|
||||
Equivalent <20> la fonction PHP nl2br().
|
||||
</para>
|
||||
<example>
|
||||
<title>nl2br</title>
|
||||
<example>
|
||||
<title>nl2br</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -22,7 +23,7 @@ index.tpl:
|
||||
SORTIE:
|
||||
|
||||
Pluie ou soleil attendu<br />aujourd'hui, nuit noire</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.regex.replace">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.regex.replace">
|
||||
<title>regex_replace</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -40,8 +41,8 @@
|
||||
Un rechercher / remplacer avec une expression r<>guli<6C>re. Utilise la m<>me
|
||||
syntaxe que la fonction PHP preg_replace.
|
||||
</para>
|
||||
<example>
|
||||
<title>regex_replace</title>
|
||||
<example>
|
||||
<title>regex_replace</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -61,7 +62,7 @@ SORTIE:
|
||||
L'infertilit<69> est un maux grandissant
|
||||
, disent les experts.
|
||||
L'infertilit<69> est un maux grandissant, disent les experts.</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.replace">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.replace">
|
||||
<title>replace</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -39,8 +40,8 @@
|
||||
<para>
|
||||
Un simple remplacement de cha<68>ne de caract<63>res.
|
||||
</para>
|
||||
<example>
|
||||
<title>replace</title>
|
||||
<example>
|
||||
<title>replace</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -59,7 +60,7 @@ SORTIE:
|
||||
Child's Stool Great for Use in Garden.
|
||||
Child's Stool Great for Use in Vineyard.
|
||||
Child's Stool Great for Use in Garden.</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.spacify">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.spacify">
|
||||
<title>spacify</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -34,8 +35,8 @@
|
||||
d'une variable. Optionnellement, vous pouvez lui passer un caract<63>re
|
||||
(ou une cha<68>ne) diff<66>rent de espace <20> ins<6E>rer.
|
||||
</para>
|
||||
<example>
|
||||
<title>spacify</title>
|
||||
<example>
|
||||
<title>spacify</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -55,7 +56,7 @@ SORTIE:
|
||||
Quelquechose s'est mal pass<73> et <20> provoqu<71> cet accident, disent les experts.
|
||||
Q u e l q u e c h o s e s ' e s t m a l p a s s <20> e t <20> p r o v o q u <20> c e t a c c i d e n t , d i s e n t l e s e x p e r t s .
|
||||
Q^^u^^e^^l^^q^^u^^e^^c^^h^^o^^s^^e^^ ^^s^^'^^e^^s^^t^^ ^^m^^a^^l^^ ^^p^^a^^s^^s^^<5E>^^ ^^e^^t^^ ^^<5E>^^ ^^p^^r^^o^^v^^o^^q^^u^^<5E>^^ ^^c^^e^^t^^ ^^a^^c^^c^^i^^d^^e^^n^^t^^,^^ ^^d^^i^^s^^e^^n^^t^^ ^^l^^e^^s^^ ^^e^^x^^p^^e^^r^^t^^s^^.</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.string.format">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.string.format">
|
||||
<title>string_format</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -33,8 +34,8 @@
|
||||
Un moyen pour formater les cha<68>nes de caract<63>res, comme par exemple les
|
||||
nombres d<>cimaux. Utilise la syntaxe de sprintf pour formater les <20>l<EFBFBD>ments.
|
||||
</para>
|
||||
<example>
|
||||
<title>string_format</title>
|
||||
<example>
|
||||
<title>string_format</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -53,7 +54,7 @@ SORTIE:
|
||||
23.5787446
|
||||
23.58
|
||||
24</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.strip.tags">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.strip.tags">
|
||||
<title>strip_tags</title>
|
||||
<para>
|
||||
Supprime toutes les balises, et plus g<>n<EFBFBD>ralement tout ce qui se trouve
|
||||
entre < et >.
|
||||
</para>
|
||||
<example>
|
||||
<title>strip_tags</title>
|
||||
<example>
|
||||
<title>strip_tags</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -27,7 +28,7 @@ Une femme aveugle obtient un nouveau <font face=\"helvetica\">
|
||||
rein</font> d'un p<>re qu'elle n'a pas vu depuis<b> des ann<6E>es</b>.
|
||||
Une femme aveugle obtient un nouveau rein d'un p<>re
|
||||
qu'elle n'a pas vu depuis des ann<6E>es.</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.strip">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.strip">
|
||||
<title>strip</title>
|
||||
<para>
|
||||
Remplace les espaces multiples, les nouvelles lignes et les tabulations
|
||||
@@ -14,8 +15,8 @@
|
||||
linkend="language.function.strip">fonction strip</link>.
|
||||
</para>
|
||||
</note>
|
||||
<example>
|
||||
<title>strip</title>
|
||||
<example>
|
||||
<title>strip</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -37,7 +38,7 @@ Une r
|
||||
Une r<>union autour d'un feu de chemin<69>e est toujours agr<67>able.
|
||||
Une&nbsp;r<>union&nbsp;autour&nbsp;d'un&nbsp;feu&nbsp;de&nbsp;chemin<69>e&nbsp;est&nbsp;toujours
|
||||
&nbsp;agr<67>able.</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.truncate">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.truncate">
|
||||
<title>truncate</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -56,8 +57,8 @@
|
||||
tronquer la cha<68>ne au caract<63>re exact, donnez la valeur true au
|
||||
dernier param<61>tre optionnel.
|
||||
</para>
|
||||
<example>
|
||||
<title>truncate</title>
|
||||
<example>
|
||||
<title>truncate</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -84,7 +85,7 @@ Deux soeurs r
|
||||
Deux soeurs r<>unies apr<70>s 18 a
|
||||
Deux soeurs r<>unies apr<70>s 1...
|
||||
</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.upper">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.upper">
|
||||
<title>upper</title>
|
||||
<para>
|
||||
Met une variable en majuscules.
|
||||
</para>
|
||||
<example>
|
||||
<title>upper</title>
|
||||
<example>
|
||||
<title>upper</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -24,7 +25,7 @@ SORTIE:
|
||||
|
||||
Si l'attaque n'est pas mise en place rapidement, cela risque de durer longtemps.
|
||||
SI L'ATTAQUE N'EST PAS MISE EN PLACE RAPIDEMENT, CELA RISQUE DE DURER LONGTEMPS.</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.modifier.wordwrap">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.modifier.wordwrap">
|
||||
<title>wordwrap</title>
|
||||
<informaltable frame="all">
|
||||
<tgroup cols="5">
|
||||
@@ -52,8 +53,8 @@
|
||||
autoriser le d<>coupage des mots pour un ajustement au caract<63>re pr<70>s,
|
||||
passez true au troisi<73>me param<61>tre optionnel.
|
||||
</para>
|
||||
<example>
|
||||
<title>wordwrap</title>
|
||||
<example>
|
||||
<title>wordwrap</title>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
@@ -98,7 +99,7 @@ Une femme aveugle obtient un n
|
||||
ouveau rein d'un p<>re qu'elle
|
||||
n'a pas vu depuis des ann<6E>es.
|
||||
</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.assigned.variables">
|
||||
<title>Variables assign<67>es depuis PHP</title>
|
||||
<para>
|
||||
@@ -87,7 +90,7 @@ zaphod@slartibartfast.com<br />
|
||||
</para>
|
||||
<example>
|
||||
<title>Acc<EFBFBD>s aux tableaux gr<67>ce <20> l'index</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
index.php:
|
||||
|
||||
$smarty = new Smarty;
|
||||
@@ -112,7 +115,7 @@ SORTIE:
|
||||
zaphod@slartibartfast.com<br>
|
||||
555-444-3333<br>
|
||||
555-111-1234<br></programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect2>
|
||||
<sect2 id="language.variables.objects">
|
||||
<title>Objets</title>
|
||||
@@ -120,8 +123,8 @@ zaphod@slartibartfast.com<br>
|
||||
Les attributs des objets assign<67>s depuis PHP peuvent <20>tre utilis<69>es en
|
||||
en sp<73>cifiant le nom apr<70>s le symbole '->'.
|
||||
</para>
|
||||
<example>
|
||||
<title>acc<EFBFBD>der aux attributs des objets</title>
|
||||
<example>
|
||||
<title>acc<EFBFBD>der aux attributs des objets</title>
|
||||
<programlisting>
|
||||
nom: {$person->name}<br>
|
||||
email: {$person->email}<br>
|
||||
@@ -130,26 +133,26 @@ SORTIE:
|
||||
|
||||
nom: Zaphod Beeblebrox<br>
|
||||
email: zaphod@slartibartfast.com<br></programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect2>
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.config.variables">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.config.variables">
|
||||
<title>Variables charg<72>es depuis des fichiers de configuration</title>
|
||||
<para>
|
||||
Les variables r<>cup<75>r<EFBFBD>es depuis un fichier de configuration sont utilis<69>es
|
||||
@@ -8,9 +9,9 @@
|
||||
<link
|
||||
linkend="language.variables.smarty.config">$smarty.config</link>.
|
||||
</para>
|
||||
<example>
|
||||
<example>
|
||||
|
||||
<title>variables de fichiers de configuration</title>
|
||||
<title>variables de fichiers de configuration</title>
|
||||
<programlisting>
|
||||
foo.conf:
|
||||
|
||||
@@ -67,30 +68,30 @@ SORTIE: (same for both examples)
|
||||
</table>
|
||||
</body>
|
||||
</html></programlisting>
|
||||
</example>
|
||||
</example>
|
||||
<para>
|
||||
Les variables de fichier de configuration ne peuvent <20>tre utilis<69>s tant
|
||||
qu'elles n'ont pas <20>t<EFBFBD> charg<72>es. Cette proc<6F>dure est expliqu<71>e
|
||||
plus loin dans le document, voir <command>config_load</command>.
|
||||
</para>
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="language.variables.smarty">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="language.variables.smarty">
|
||||
<title>Variable r<>serv<72>e {$smarty}</title>
|
||||
<para>
|
||||
La variable r<>serv<72>e {$smarty} peut <20>tre utilis<69>e pour acc<63>der <20> plusieurs
|
||||
@@ -16,7 +19,7 @@
|
||||
<example>
|
||||
|
||||
<title>Afficher des variables de requ<71>te</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
{* Affiche la valeur de page dans l'url (GET) http://www.domain.com/index.php?page=foo *}
|
||||
{$smarty.get.page}
|
||||
|
||||
@@ -37,7 +40,7 @@
|
||||
|
||||
{* affiche la variable "utilisateur" du regroupement de get/post/cookies/server/env *}
|
||||
{$smarty.request.utilisateur}</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="language.variables.smarty.now">
|
||||
@@ -48,25 +51,25 @@
|
||||
Epoch (1 Janvier 1970) et peut <20>tre pass<73> directement au modificateur
|
||||
de variable date <20> des fins d'affichage.
|
||||
</para>
|
||||
<example>
|
||||
<example>
|
||||
|
||||
<title>utilisation de {$smarty.now}</title>
|
||||
<title>utilisation de {$smarty.now}</title>
|
||||
<programlisting>
|
||||
{* utilise le modificateur de variable date_format pour afficher la date et heure *}
|
||||
{$smarty.now|date_format:"%d-%m-%Y %H:%M:%S"}</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect2>
|
||||
<sect2 id="language.variables.smarty.const">
|
||||
<title>{$smarty.const}</title>
|
||||
<para>
|
||||
Vous pouvez directement acc<63>der aux constantes PHP.
|
||||
</para>
|
||||
<example>
|
||||
<example>
|
||||
|
||||
<title>Utiliser {$smarty.const}</title>
|
||||
<title>Utiliser {$smarty.const}</title>
|
||||
<programlisting>
|
||||
{$smarty.const._MA_CONSTANTE_}</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect2>
|
||||
|
||||
<sect2 id="language.variables.smarty.capture">
|
||||
@@ -107,24 +110,24 @@
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<part id="getting.started">
|
||||
<title>Pour commencer</title>
|
||||
|
||||
@@ -107,11 +108,11 @@
|
||||
<example>
|
||||
<title>fichiers de la biblioth<74>que SMARTY</title>
|
||||
<screen>
|
||||
Smarty.class.php
|
||||
Smarty_Compiler.class.php
|
||||
Config_File.class.php
|
||||
debug.tpl
|
||||
/plugins/*.php (tous !)</screen>
|
||||
Smarty.class.php
|
||||
Smarty_Compiler.class.php
|
||||
Config_File.class.php
|
||||
debug.tpl
|
||||
/plugins/*.php (tous !)</screen>
|
||||
</example>
|
||||
|
||||
<para>
|
||||
@@ -135,8 +136,8 @@ debug.tpl
|
||||
<example>
|
||||
<title>cr<EFBFBD>er une instance de Smarty</title>
|
||||
<screen>
|
||||
require('Smarty.class.php');
|
||||
$smarty = new Smarty;</screen>
|
||||
require('Smarty.class.php');
|
||||
$smarty = new Smarty;</screen>
|
||||
</example>
|
||||
|
||||
<para>
|
||||
@@ -148,26 +149,26 @@ $smarty = new Smarty;</screen>
|
||||
<example>
|
||||
<title>fournir un chemin absolu vers la biblioth<74>que Smarty</title>
|
||||
<screen>
|
||||
require('/usr/local/lib/php/Smarty/Smarty.class.php');
|
||||
$smarty = new Smarty;</screen>
|
||||
require('/usr/local/lib/php/Smarty/Smarty.class.php');
|
||||
$smarty = new Smarty;</screen>
|
||||
</example>
|
||||
|
||||
<example>
|
||||
<title>Ajouter le r<>pertoire de la biblioth<74>que au chemin de php_include</title>
|
||||
<screen>
|
||||
// Editez le fichier php.ini, ajoutez le r<>pertoire de la
|
||||
// biblioth<74>que Smarty au include_path et red<65>marrez le serveur Web.
|
||||
// Cela devrait ensuite fonctionner :
|
||||
require('Smarty.class.php');
|
||||
$smarty = new Smarty;</screen>
|
||||
// Editez le fichier php.ini, ajoutez le r<>pertoire de la
|
||||
// biblioth<74>que Smarty au include_path et red<65>marrez le serveur Web.
|
||||
// Cela devrait ensuite fonctionner :
|
||||
require('Smarty.class.php');
|
||||
$smarty = new Smarty;</screen>
|
||||
</example>
|
||||
|
||||
<example>
|
||||
<title>D<EFBFBD>finir explicitement la constante SMARTY_DIR</title>
|
||||
<screen>
|
||||
define('SMARTY_DIR','/usr/local/lib/php/Smarty/');
|
||||
require(SMARTY_DIR.'Smarty.class.php');
|
||||
$smarty = new Smarty;</screen>
|
||||
define('SMARTY_DIR','/usr/local/lib/php/Smarty/');
|
||||
require(SMARTY_DIR.'Smarty.class.php');
|
||||
$smarty = new Smarty;</screen>
|
||||
</example>
|
||||
|
||||
<para>
|
||||
@@ -223,18 +224,18 @@ $smarty = new Smarty;</screen>
|
||||
<example>
|
||||
<title>exemple de structure de fichiers</title>
|
||||
<screen>
|
||||
/usr/local/lib/php/Smarty/Smarty.class.php
|
||||
/usr/local/lib/php/Smarty/Smarty_Compiler.class.php
|
||||
/usr/local/lib/php/Smarty/Config_File.class.php
|
||||
/usr/local/lib/php/Smarty/debug.tpl
|
||||
/usr/local/lib/php/Smarty/plugins/*.php
|
||||
/usr/local/lib/php/Smarty/Smarty.class.php
|
||||
/usr/local/lib/php/Smarty/Smarty_Compiler.class.php
|
||||
/usr/local/lib/php/Smarty/Config_File.class.php
|
||||
/usr/local/lib/php/Smarty/debug.tpl
|
||||
/usr/local/lib/php/Smarty/plugins/*.php
|
||||
|
||||
/web/www.mydomain.com/smarty/livredor/templates/
|
||||
/web/www.mydomain.com/smarty/livredor/templates_c/
|
||||
/web/www.mydomain.com/smarty/livredor/configs/
|
||||
/web/www.mydomain.com/smarty/livredor/cache/
|
||||
/web/www.mydomain.com/smarty/livredor/templates/
|
||||
/web/www.mydomain.com/smarty/livredor/templates_c/
|
||||
/web/www.mydomain.com/smarty/livredor/configs/
|
||||
/web/www.mydomain.com/smarty/livredor/cache/
|
||||
|
||||
/web/www.mydomain.com/docs/livredor/index.php</screen>
|
||||
/web/www.mydomain.com/docs/livredor/index.php</screen>
|
||||
</example>
|
||||
|
||||
<para>
|
||||
@@ -254,11 +255,11 @@ $smarty = new Smarty;</screen>
|
||||
<title>r<EFBFBD>gler les permissions d'acc<63>s</title>
|
||||
<screen>
|
||||
|
||||
chown nobody:nobody /web/www.mydomain.com/smarty/templates_c/
|
||||
chmod 770 /web/www.mydomain.com/smarty/templates_c/
|
||||
chown nobody:nobody /web/www.mydomain.com/smarty/templates_c/
|
||||
chmod 770 /web/www.mydomain.com/smarty/templates_c/
|
||||
|
||||
chown nobody:nobody /web/www.mydomain.com/smarty/cache/
|
||||
chmod 770 /web/www.mydomain.com/smarty/cache/</screen>
|
||||
chown nobody:nobody /web/www.mydomain.com/smarty/cache/
|
||||
chmod 770 /web/www.mydomain.com/smarty/cache/</screen>
|
||||
</example>
|
||||
|
||||
<note>
|
||||
@@ -281,9 +282,9 @@ chmod 770 /web/www.mydomain.com/smarty/cache/</screen>
|
||||
<title>Edition de /web/www.mydomain.com/smarty/templates/index.tpl</title>
|
||||
<screen>
|
||||
|
||||
{* Smarty *}
|
||||
{* Smarty *}
|
||||
|
||||
Hello, {$name}!</screen>
|
||||
Hello, {$name}!</screen>
|
||||
</example>
|
||||
|
||||
|
||||
@@ -311,19 +312,19 @@ Hello, {$name}!</screen>
|
||||
<example>
|
||||
<title><EFBFBD>dition de /web/www.mydomain.com/docs/livredor/index.php</title>
|
||||
<screen>
|
||||
// charge la biblioth<74>que Smarty
|
||||
require('Smarty.class.php');
|
||||
// charge la biblioth<74>que Smarty
|
||||
require('Smarty.class.php');
|
||||
|
||||
$smarty = new Smarty;
|
||||
$smarty = new Smarty;
|
||||
|
||||
$smarty->template_dir = '/web/www.mydomain.com/smarty/livredor/templates/';
|
||||
$smarty->compile_dir = '/web/www.mydomain.com/smarty/livredor/templates_c/';
|
||||
$smarty->config_dir = '/web/www.mydomain.com/smarty/livredor/configs/';
|
||||
$smarty->cache_dir = '/web/www.mydomain.com/smarty/livredor/cache/';
|
||||
$smarty->template_dir = '/web/www.mydomain.com/smarty/livredor/templates/';
|
||||
$smarty->compile_dir = '/web/www.mydomain.com/smarty/livredor/templates_c/';
|
||||
$smarty->config_dir = '/web/www.mydomain.com/smarty/livredor/configs/';
|
||||
$smarty->cache_dir = '/web/www.mydomain.com/smarty/livredor/cache/';
|
||||
|
||||
$smarty->assign('name','Ned');
|
||||
$smarty->assign('name','Ned');
|
||||
|
||||
$smarty->display('index.tpl');</screen>
|
||||
$smarty->display('index.tpl');</screen>
|
||||
</example>
|
||||
|
||||
<note>
|
||||
@@ -371,16 +372,16 @@ $smarty->display('index.tpl');</screen>
|
||||
<title><EFBFBD>dition de /php/includes/livredor/setup.php</title>
|
||||
<screen>
|
||||
|
||||
// charge la librairie Smarty
|
||||
require('Smarty.class.php');
|
||||
// charge la librairie Smarty
|
||||
require('Smarty.class.php');
|
||||
|
||||
// le fichier setup.php est un bon
|
||||
// endroit pour charger les fichiers
|
||||
// de librairies de l'application et vous pouvez
|
||||
// faire cela juste ici. Par exemple :
|
||||
// require('livredor/livredor.lib.php');
|
||||
// le fichier setup.php est un bon
|
||||
// endroit pour charger les fichiers
|
||||
// de librairies de l'application et vous pouvez
|
||||
// faire cela juste ici. Par exemple :
|
||||
// require('livredor/livredor.lib.php');
|
||||
|
||||
class Smarty_livredor extends Smarty {
|
||||
class Smarty_livredor extends Smarty {
|
||||
|
||||
function Smarty_livredor() {
|
||||
|
||||
@@ -398,7 +399,7 @@ class Smarty_livredor extends Smarty {
|
||||
$this->assign('app_name','Guest Book');
|
||||
}
|
||||
|
||||
}</screen>
|
||||
}</screen>
|
||||
</example>
|
||||
|
||||
<para>
|
||||
@@ -409,13 +410,13 @@ class Smarty_livredor extends Smarty {
|
||||
<title><EFBFBD>dition de /web/www.mydomain.com/docs/livredor/index.php</title>
|
||||
<screen>
|
||||
|
||||
require('livredor/setup.php');
|
||||
require('livredor/setup.php');
|
||||
|
||||
$smarty = new Smarty_livredor;
|
||||
$smarty = new Smarty_livredor;
|
||||
|
||||
$smarty->assign('name','Ned');
|
||||
$smarty->assign('name','Ned');
|
||||
|
||||
$smarty->display('index.tpl');</screen>
|
||||
$smarty->display('index.tpl');</screen>
|
||||
</example>
|
||||
|
||||
<para>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<preface id="preface">
|
||||
<title>Pr<EFBFBD>face</title>
|
||||
<para>
|
||||
@@ -76,7 +77,7 @@
|
||||
plus simple. Et si nous combinions les deux forces ? Ainsi, Smarty
|
||||
<20>tait n<>...
|
||||
</para>
|
||||
</preface>
|
||||
</preface>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
|
||||
@@ -1,17 +1,18 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<chapter id="advanced.features">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<chapter id="advanced.features">
|
||||
<title>Fonctionnalit<EFBFBD>s avanc<6E>es</title>
|
||||
&programmers.advanced-features.advanced-features-objects;
|
||||
&programmers.advanced-features.advanced-features-prefilters;
|
||||
&programmers.advanced-features.advanced-features-objects;
|
||||
&programmers.advanced-features.advanced-features-prefilters;
|
||||
|
||||
&programmers.advanced-features.advanced-features-postfilters;
|
||||
&programmers.advanced-features.advanced-features-postfilters;
|
||||
|
||||
&programmers.advanced-features.advanced-features-outputfilters;
|
||||
&programmers.advanced-features.advanced-features-outputfilters;
|
||||
|
||||
&programmers.advanced-features.section-template-cache-handler-func;
|
||||
&programmers.advanced-features.section-template-cache-handler-func;
|
||||
|
||||
&programmers.advanced-features.template-resources;
|
||||
&programmers.advanced-features.template-resources;
|
||||
</chapter>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="advanced.features.objects">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="advanced.features.objects">
|
||||
<title>Objets</title>
|
||||
<para>
|
||||
Smarty donne l'acc<63>s aux objets PHP a travers les templates. Il y
|
||||
@@ -36,7 +37,7 @@
|
||||
</para>
|
||||
<example>
|
||||
<title>utilisation d'un objet allou<6F> ou assign<67></title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
<?php
|
||||
// la classe
|
||||
|
||||
|
||||
@@ -1,6 +1,19 @@
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="advanced.features.outputfilters">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="advanced.features.outputfilters">
|
||||
<title>Filtres de sortie</title>
|
||||
<para>
|
||||
Quand le template est appel<65> via les fonctions display() ou fetch(),
|
||||
@@ -21,7 +34,7 @@
|
||||
</para>
|
||||
<example>
|
||||
<title>utilisation d'un filtre de sortie</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
<?php
|
||||
// mettez ceci dans votre application
|
||||
function protect_email($tpl_output, &$smarty)
|
||||
@@ -40,24 +53,24 @@ $smarty->display("index.tpl");
|
||||
// aura un protection simple contre les robots spammers
|
||||
?></programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="advanced.features.postfilters">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="advanced.features.postfilters">
|
||||
<title>Filtres de post-compilation</title>
|
||||
<para>
|
||||
Les filtres de post-compilation sont des fonctions PHP que vos templates
|
||||
@@ -14,7 +21,7 @@
|
||||
</para>
|
||||
<example>
|
||||
<title>utilisation d'un filtre de post-compilation de templates</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
<?php
|
||||
// mettez cela dans votre application
|
||||
function add_header_comment($tpl_source, &$smarty)
|
||||
@@ -31,24 +38,24 @@ $smarty->display("index.tpl");
|
||||
<!-- Created by Smarty! -->
|
||||
{* reste du contenu du template... *}</programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
|
||||
@@ -1,6 +1,19 @@
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="advanced.features.prefilters">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="advanced.features.prefilters">
|
||||
<title>Filtres de pr<70>-compilation</title>
|
||||
<para>
|
||||
Les filtres de pr<70>-compilation sont des fonctions PHP que vos templates
|
||||
@@ -18,7 +31,7 @@
|
||||
</para>
|
||||
<example>
|
||||
<title>Utilisation un filtre de pr<70>-compilation de template</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
<?php
|
||||
// mettre ceci dans votre application
|
||||
function remove_dw_comments($tpl_source, &$smarty)
|
||||
@@ -34,24 +47,24 @@ $smarty->display("index.tpl");
|
||||
{* template Smarty index.tpl *}
|
||||
<!--# cette ligne va <20>tre supprim<69>e par le filtre de pr<70>-compilation --></programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
|
||||
@@ -1,6 +1,27 @@
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="section.template.cache.handler.func">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="section.template.cache.handler.func">
|
||||
<title>Fonction de gestion du cache</title>
|
||||
<para>
|
||||
Une alternative au m<>canisme de cache par d<>faut (bas<61> sur des fichiers
|
||||
@@ -25,7 +46,7 @@
|
||||
</para>
|
||||
<example>
|
||||
<title>exemple d'utilisation de MySQL pour la source du cache</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
<?php
|
||||
/*
|
||||
|
||||
@@ -129,24 +150,24 @@ function mysql_cache_handler($action, &$smarty_obj, &$cache_content, $tp
|
||||
|
||||
?></programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="template.resources">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="template.resources">
|
||||
<title>Ressources</title>
|
||||
<para>
|
||||
Les templates peuvent provenir d'une grande vari<72>t<EFBFBD> de ressources. Quand vous
|
||||
@@ -19,7 +20,7 @@
|
||||
</para>
|
||||
<example>
|
||||
<title>Utilisation de templates depuis $template_dir</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
// le script PHP
|
||||
$smarty->display("index.tpl");
|
||||
$smarty->display("admin/menu.tpl");
|
||||
@@ -39,7 +40,7 @@ $smarty->display("file:admin/menu.tpl"); // le m
|
||||
</para>
|
||||
<example>
|
||||
<title>utilisation d'un template depuis n'importe quel r<>pertoire</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
// le script PHP
|
||||
$smarty->display("file:/export/templates/index.tpl");
|
||||
$smarty->display("file:/path/to/my/templates/menu.tpl");
|
||||
@@ -58,7 +59,7 @@ $smarty->display("file:/path/to/my/templates/menu.tpl");
|
||||
</para>
|
||||
<example>
|
||||
<title>utilisation de templates avec des chemins de fichiers Windows</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
// le script PHP
|
||||
$smarty->display("file:C:/export/templates/index.tpl");
|
||||
$smarty->display("file:F:/path/to/my/templates/menu.tpl");
|
||||
@@ -91,7 +92,7 @@ $smarty->display("file:F:/path/to/my/templates/menu.tpl");
|
||||
</note>
|
||||
<example>
|
||||
<title>utilisation de ressources utilisateurs</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
// le script PHP
|
||||
|
||||
// mettez ces fonctions quelque part dans votre application
|
||||
@@ -161,7 +162,7 @@ $smarty->display("db:index.tpl");
|
||||
</para>
|
||||
<example>
|
||||
<title>utilisation de la fonction de gestion de template par d<>faut</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
<?php
|
||||
// mettez cette fonction quelque part dans votre application
|
||||
|
||||
|
||||
@@ -1,46 +1,47 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<chapter id="api.functions">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<chapter id="api.functions">
|
||||
<title>M<EFBFBD>thodes</title>
|
||||
&programmers.api-functions.api-append;
|
||||
&programmers.api-functions.api-append-by-ref;
|
||||
&programmers.api-functions.api-assign;
|
||||
&programmers.api-functions.api-assign-by-ref;
|
||||
&programmers.api-functions.api-clear-all-assign;
|
||||
&programmers.api-functions.api-clear-all-cache;
|
||||
&programmers.api-functions.api-clear-assign;
|
||||
&programmers.api-functions.api-clear-cache;
|
||||
&programmers.api-functions.api-clear-compiled-tpl;
|
||||
&programmers.api-functions.api-clear-config;
|
||||
&programmers.api-functions.api-config-load;
|
||||
&programmers.api-functions.api-display;
|
||||
&programmers.api-functions.api-fetch;
|
||||
&programmers.api-functions.api-get-config-vars;
|
||||
&programmers.api-functions.api-get-registered-object;
|
||||
&programmers.api-functions.api-get-template-vars;
|
||||
&programmers.api-functions.api-is-cached;
|
||||
&programmers.api-functions.api-load-filter;
|
||||
&programmers.api-functions.api-register-block;
|
||||
&programmers.api-functions.api-register-compiler-function;
|
||||
&programmers.api-functions.api-register-function;
|
||||
&programmers.api-functions.api-register-modifier;
|
||||
&programmers.api-functions.api-register-object;
|
||||
&programmers.api-functions.api-register-outputfilter;
|
||||
&programmers.api-functions.api-register-postfilter;
|
||||
&programmers.api-functions.api-register-prefilter;
|
||||
&programmers.api-functions.api-register-resource;
|
||||
&programmers.api-functions.api-trigger-error;
|
||||
&programmers.api-functions.api-append;
|
||||
&programmers.api-functions.api-append-by-ref;
|
||||
&programmers.api-functions.api-assign;
|
||||
&programmers.api-functions.api-assign-by-ref;
|
||||
&programmers.api-functions.api-clear-all-assign;
|
||||
&programmers.api-functions.api-clear-all-cache;
|
||||
&programmers.api-functions.api-clear-assign;
|
||||
&programmers.api-functions.api-clear-cache;
|
||||
&programmers.api-functions.api-clear-compiled-tpl;
|
||||
&programmers.api-functions.api-clear-config;
|
||||
&programmers.api-functions.api-config-load;
|
||||
&programmers.api-functions.api-display;
|
||||
&programmers.api-functions.api-fetch;
|
||||
&programmers.api-functions.api-get-config-vars;
|
||||
&programmers.api-functions.api-get-registered-object;
|
||||
&programmers.api-functions.api-get-template-vars;
|
||||
&programmers.api-functions.api-is-cached;
|
||||
&programmers.api-functions.api-load-filter;
|
||||
&programmers.api-functions.api-register-block;
|
||||
&programmers.api-functions.api-register-compiler-function;
|
||||
&programmers.api-functions.api-register-function;
|
||||
&programmers.api-functions.api-register-modifier;
|
||||
&programmers.api-functions.api-register-object;
|
||||
&programmers.api-functions.api-register-outputfilter;
|
||||
&programmers.api-functions.api-register-postfilter;
|
||||
&programmers.api-functions.api-register-prefilter;
|
||||
&programmers.api-functions.api-register-resource;
|
||||
&programmers.api-functions.api-trigger-error;
|
||||
|
||||
&programmers.api-functions.api-template-exists;
|
||||
&programmers.api-functions.api-unregister-block;
|
||||
&programmers.api-functions.api-unregister-compiler-function;
|
||||
&programmers.api-functions.api-unregister-function;
|
||||
&programmers.api-functions.api-unregister-modifier;
|
||||
&programmers.api-functions.api-unregister-object;
|
||||
&programmers.api-functions.api-unregister-outputfilter;
|
||||
&programmers.api-functions.api-unregister-postfilter;
|
||||
&programmers.api-functions.api-unregister-prefilter;
|
||||
&programmers.api-functions.api-unregister-resource;
|
||||
&programmers.api-functions.api-template-exists;
|
||||
&programmers.api-functions.api-unregister-block;
|
||||
&programmers.api-functions.api-unregister-compiler-function;
|
||||
&programmers.api-functions.api-unregister-function;
|
||||
&programmers.api-functions.api-unregister-modifier;
|
||||
&programmers.api-functions.api-unregister-object;
|
||||
&programmers.api-functions.api-unregister-outputfilter;
|
||||
&programmers.api-functions.api-unregister-postfilter;
|
||||
&programmers.api-functions.api-unregister-prefilter;
|
||||
&programmers.api-functions.api-unregister-resource;
|
||||
</chapter>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.append.by.ref">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.append.by.ref">
|
||||
<title>append_by_ref</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
@@ -37,11 +38,11 @@
|
||||
</note>
|
||||
<example>
|
||||
<title>append_by_ref</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
// ajoute des paires nom/valeur
|
||||
$smarty->append_by_ref("Name",$myname);
|
||||
$smarty->append_by_ref("Address",$address);</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.append">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.append">
|
||||
<title>append</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
@@ -39,14 +40,14 @@
|
||||
</note>
|
||||
<example>
|
||||
<title>append</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
// passe des paires nom/valeur
|
||||
$smarty->append("Name","Fred");
|
||||
$smarty->append("Address",$address);
|
||||
|
||||
// passe un tableau associatif
|
||||
$smarty->append(array("city" => "Lincoln","state" => "Nebraska"));</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.assign.by.ref">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.assign.by.ref">
|
||||
<title>assign_by_ref</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
@@ -26,11 +27,11 @@
|
||||
</note>
|
||||
<example>
|
||||
<title>assign_by_ref</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
// passe des paires noms/valeurs
|
||||
$smarty->assign_by_ref("Name",$myname);
|
||||
$smarty->assign_by_ref("Address",$address);</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.assign">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.assign">
|
||||
<title>assign</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
@@ -20,14 +21,14 @@
|
||||
</para>
|
||||
<example>
|
||||
<title>assign</title>
|
||||
<programlisting>
|
||||
<programlisting>
|
||||
// passe des paires nom/valeur
|
||||
$smarty->assign("Name","Fred");
|
||||
$smarty->assign("Address",$address);
|
||||
|
||||
// passe un tableau associatif
|
||||
$smarty->assign(array("city" => "Lincoln","state" => "Nebraska"));</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.clear.all.assign">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.clear.all.assign">
|
||||
<title>clear_all_assign</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
@@ -11,12 +12,12 @@
|
||||
<para>
|
||||
Utilis<69>e pour effacer les valeurs de toutes les variables assign<67>es.
|
||||
</para>
|
||||
<example>
|
||||
<title>clear_all_assign</title>
|
||||
<example>
|
||||
<title>clear_all_assign</title>
|
||||
<programlisting>
|
||||
// efface toutes les variables assign<67>es
|
||||
$smarty->clear_all_assign();</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.clear.all.cache">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.clear.all.cache">
|
||||
<title>clear_all_cache</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
@@ -13,12 +14,12 @@
|
||||
param<61>tre optionnel afin d'indiquer l'Gge minimun que doivent avoir
|
||||
les fichiers de cache pour qu'ils soient effac<61>s.
|
||||
</para>
|
||||
<example>
|
||||
<title>clear_all_cache</title>
|
||||
<example>
|
||||
<title>clear_all_cache</title>
|
||||
<programlisting>
|
||||
// efface le cache
|
||||
$smarty->clear_all_cache();</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.clear.assign">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.clear.assign">
|
||||
<title>clear_assign</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
@@ -12,15 +13,15 @@
|
||||
Efface la valeur d'une variable assign<67>e. Il peut s'agir
|
||||
d'une simple valeur ou d'un tableau de valeur.
|
||||
</para>
|
||||
<example>
|
||||
<title>clear_assign</title>
|
||||
<example>
|
||||
<title>clear_assign</title>
|
||||
<programlisting>
|
||||
// efface une variable
|
||||
$smarty->clear_assign("Name");
|
||||
|
||||
// efface plusieurs variables
|
||||
$smarty->clear_assign(array("Name","Address","Zip"));</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.clear.cache">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.clear.cache">
|
||||
<title>clear_cache</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>clear_cache</methodname>
|
||||
@@ -22,33 +29,33 @@
|
||||
pour indiquer un Gge minimum en secondes que le fichier en cache doit
|
||||
avoir avant d'<27>tre effac<61>.
|
||||
</para>
|
||||
<example>
|
||||
<title>clear_cache</title>
|
||||
<example>
|
||||
<title>clear_cache</title>
|
||||
<programlisting>
|
||||
// efface le fichier de cache de ce template
|
||||
$smarty->clear_cache("index.tpl");
|
||||
|
||||
// efface un fichier de cache grGce a son identifiant de cache
|
||||
$smarty->clear_cache("index.tpl","CACHEID");</programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.clear.compiled.tpl">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.clear.compiled.tpl">
|
||||
<title>clear_compiled_tpl</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
@@ -13,15 +14,15 @@
|
||||
de tous les templates si aucun n'est sp<73>cifi<66>. Cette fonction
|
||||
est destin<69>e a un usage avanc<6E> et n'est pas habituellement utilis<69>e.
|
||||
</para>
|
||||
<example>
|
||||
<title>clear_compiled_tpl</title>
|
||||
<example>
|
||||
<title>clear_compiled_tpl</title>
|
||||
<programlisting>
|
||||
// efface la version compil<69>e du template sp<73>cifi<66>
|
||||
$smarty->clear_compiled_tpl("index.tpl");
|
||||
|
||||
// efface tout le contenu du r<>pertoire des templates compil<69>s
|
||||
$smarty->clear_compiled_tpl();</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.clear.config">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.clear.config">
|
||||
<title>clear_config</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>clear_config</methodname>
|
||||
@@ -11,15 +12,15 @@
|
||||
vues assigner une valeur. Si une variable est sp<73>cifi<66>e, seule cette
|
||||
variable est effac<61>e.
|
||||
</para>
|
||||
<example>
|
||||
<title>clear_config</title>
|
||||
<example>
|
||||
<title>clear_config</title>
|
||||
<programlisting>
|
||||
// efface toutes les variables de configuration assign<67>es
|
||||
$smarty->clear_config();
|
||||
|
||||
// efface une seule variable
|
||||
$smarty->clear_config('foobar');</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.config.load">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.config.load">
|
||||
<title>config_load</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>config_load</methodname>
|
||||
@@ -25,15 +26,15 @@
|
||||
linkend="variable.compile.check">compile_check</link>.
|
||||
</para>
|
||||
</note>
|
||||
<example>
|
||||
<title>config_load</title>
|
||||
<example>
|
||||
<title>config_load</title>
|
||||
<programlisting>
|
||||
// charge les variables de configuration et les assigne
|
||||
$smarty->config_load('my.conf');
|
||||
|
||||
// charge une section
|
||||
$smarty->config_load('my.conf','foobar');</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.display">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.display">
|
||||
<title>display</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>display</methodname>
|
||||
@@ -27,8 +28,8 @@
|
||||
linkend="variable.compile.id">$compile_id</link> une seule
|
||||
fois au lieu de la passer a chaque appel.
|
||||
</para>
|
||||
<example>
|
||||
<title>affichage</title>
|
||||
<example>
|
||||
<title>affichage</title>
|
||||
<programlisting>
|
||||
include("Smarty.class.php");
|
||||
$smarty = new Smarty;
|
||||
@@ -55,7 +56,7 @@ if(!$smarty->is_cached("index.tpl"))
|
||||
|
||||
// display the output
|
||||
$smarty->display("index.tpl");</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
<para>
|
||||
Utilisez la syntaxe des <link
|
||||
linkend="template.resources">ressources templates</link>
|
||||
@@ -63,8 +64,8 @@ $smarty->display("index.tpl");</programlisting>
|
||||
$template_dir
|
||||
</para>
|
||||
|
||||
<example>
|
||||
<title>exemples de fonction d'affichage de ressources templates</title>
|
||||
<example>
|
||||
<title>exemples de fonction d'affichage de ressources templates</title>
|
||||
<programlisting>
|
||||
// chemin absolu
|
||||
$smarty->display("/usr/local/include/templates/header.tpl");
|
||||
@@ -77,26 +78,26 @@ $smarty->display("file:C:/www/pub/templates/header.tpl");
|
||||
|
||||
// inclue a partir de la ressource template "db"
|
||||
$smarty->display("db:header.tpl");</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
|
||||
@@ -1,6 +1,49 @@
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
|
||||
Warning: str_repeat(): Second argument has to be greater than or equal to 0. in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 63
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.fetch">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.fetch">
|
||||
<title>fetch</title>
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>fetch</methodname>
|
||||
@@ -15,8 +58,8 @@
|
||||
valides. Vous pouvez passer un identifiant de cache en deuxi<78>me
|
||||
param<61>tre. Reportez-vous a la section <link linkend="caching">cache
|
||||
</link> pour plus de renseignements.
|
||||
</para>
|
||||
<para>
|
||||
</para>
|
||||
<para>
|
||||
Un troisi<73>me param<61>tre optionnel est un identifiant de compilation.
|
||||
Cela s'av<61>re utile quand vous voulez compiler diff<66>rentes versions
|
||||
d'un m<>me template, pour par exemple avoir des templates
|
||||
@@ -26,9 +69,9 @@
|
||||
s'<27>craseraient entre eux. Vous pouvez aussi r<>gler la variable <link
|
||||
linkend="variable.compile.id">$compile_id</link> une seule
|
||||
fois plut(t que de la passer a chaque appel.
|
||||
</para>
|
||||
</para>
|
||||
<example>
|
||||
<title>fetch</title>
|
||||
<title>fetch</title>
|
||||
<programlisting>
|
||||
include("Smarty.class.php");
|
||||
$smarty = new Smarty;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.get.config.vars">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.get.config.vars">
|
||||
<title>get_config_vars</title>
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>get_config_vars</methodname>
|
||||
@@ -11,8 +12,8 @@
|
||||
Si aucun param<61>tre n'est donn<6E>, un tableau de toutes les variables de
|
||||
configuration charg<72>es est renvoy<6F>.
|
||||
</para>
|
||||
<example>
|
||||
<title>get_config_vars</title>
|
||||
<example>
|
||||
<title>get_config_vars</title>
|
||||
<programlisting>
|
||||
// r<>cup<75>re la variable de configuration charg<72>e 'foo'
|
||||
$foo = $smarty->get_config_vars('foo');
|
||||
@@ -22,7 +23,7 @@ $config_vars = $smarty->get_config_vars();
|
||||
|
||||
// les affiche a l'<27>cran
|
||||
print_r($config_vars);</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.get.registered.object">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.get.registered.object">
|
||||
<title>get_registered_object</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
@@ -13,8 +14,8 @@
|
||||
voulez acc<63>der directement a un objet enregistr<74> avec une
|
||||
fonction utilisateur.
|
||||
</para>
|
||||
<example>
|
||||
<title>get_registered_object</title>
|
||||
<example>
|
||||
<title>get_registered_object</title>
|
||||
<programlisting>
|
||||
function smarty_block_foo($params, &$smarty) {
|
||||
if (isset[$params['object']]) {
|
||||
@@ -23,7 +24,7 @@ function smarty_block_foo($params, &$smarty) {
|
||||
// $obj_ref est maintenant une r<>f<EFBFBD>rence vers l'objet
|
||||
}
|
||||
}</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.get.template.vars">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.get.template.vars">
|
||||
<title>get_template_vars</title>
|
||||
<methodsynopsis>
|
||||
<type>array</type><methodname>get_template_vars</methodname>
|
||||
@@ -11,8 +12,8 @@
|
||||
n'est donn<6E>, un tableau de toutes les variables assign<67>es est
|
||||
renvoy<6F>.
|
||||
</para>
|
||||
<example>
|
||||
<title>get_template_vars</title>
|
||||
<example>
|
||||
<title>get_template_vars</title>
|
||||
<programlisting>
|
||||
// r<>cup<75>re la variable 'foo' assign<67>e au template
|
||||
// get assigned template var 'foo'
|
||||
@@ -23,7 +24,7 @@ $tpl_vars = $smarty->get_template_vars();
|
||||
|
||||
// les affiche a l'<27>cran
|
||||
print_r($tpl_vars);</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.is.cached">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.is.cached">
|
||||
<title>is_cached</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
@@ -14,8 +15,8 @@
|
||||
Cela fonctionne seulement si <link
|
||||
linkend="variable.caching">caching</link> est a vrai.
|
||||
</para>
|
||||
<example>
|
||||
<title>is_cached</title>
|
||||
<example>
|
||||
<title>is_cached</title>
|
||||
<programlisting>
|
||||
$smarty->caching = true;
|
||||
|
||||
@@ -25,14 +26,14 @@ if(!$smarty->is_cached("index.tpl")) {
|
||||
}
|
||||
|
||||
$smarty->display("index.tpl");</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
<para>
|
||||
Vous pouvez aussi passer en second param<61>tre un identifiant
|
||||
de cache au cas o<> vous voudriez plusieurs fichiers de cache
|
||||
pour ce template.
|
||||
</para>
|
||||
<example>
|
||||
<title>is_cached with multiple-cache template</title>
|
||||
<example>
|
||||
<title>is_cached with multiple-cache template</title>
|
||||
<programlisting>
|
||||
$smarty->caching = true;
|
||||
|
||||
@@ -42,7 +43,7 @@ if(!$smarty->is_cached("index.tpl","FrontPage")) {
|
||||
}
|
||||
|
||||
$smarty->display("index.tpl","FrontPage");</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.load.filter">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.load.filter">
|
||||
<title>load_filter</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
@@ -16,13 +17,13 @@
|
||||
ou 'output'. Le second argument sp<73>cifie le nom du plugin
|
||||
de filtrage, par exemple 'trim'.
|
||||
</para>
|
||||
<example>
|
||||
<title>Chargement de plugins de filtrage</title>
|
||||
<example>
|
||||
<title>Chargement de plugins de filtrage</title>
|
||||
<programlisting>
|
||||
$smarty->load_filter('pre', 'trim'); // charge le filtre 'trim' de type 'pre'
|
||||
$smarty->load_filter('pre', 'datefooter'); // charge un autre filtre de type 'pre' appel<65> 'datefooter'
|
||||
$smarty->load_filter('output', 'compress'); // charge le filtre 'compress' de type 'output'</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.register.block">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.register.block">
|
||||
<title>register_block</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
@@ -14,8 +15,8 @@
|
||||
de blocs. Il faut passer en param<61>tre le nom de la fonction
|
||||
de blocs, suivi du nom de la fonction PHP qui l'impl<70>mente.
|
||||
</para>
|
||||
<example>
|
||||
<title>register_block</title>
|
||||
<example>
|
||||
<title>register_block</title>
|
||||
<programlisting>
|
||||
/* PHP */
|
||||
$smarty->register_block("translate", "do_translation");
|
||||
@@ -32,7 +33,7 @@ function do_translation ($params, $content, &$smarty) {
|
||||
{translate lang="br"}
|
||||
Hello, world!
|
||||
{/translate}</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.register.compiler.function">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.register.compiler.function">
|
||||
<title>register_compiler_function</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.register.function">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.register.function">
|
||||
<title>register_function</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
@@ -14,8 +15,8 @@
|
||||
de templates. Il faut passer en param<61>tres le nom de la fonction
|
||||
de templates, suivi par le nom de la fonction PHP qui l'impl<70>mente.
|
||||
</para>
|
||||
<example>
|
||||
<title>register_function</title>
|
||||
<example>
|
||||
<title>register_function</title>
|
||||
<programlisting>
|
||||
$smarty->register_function("date_now", "print_current_date");
|
||||
|
||||
@@ -29,7 +30,7 @@ function print_current_date ($params) {
|
||||
// vous pouvez maintenant utiliser ceci dans Smarty pour afficher
|
||||
// la date actuelle : {date_now} ou {date_now format="%Y/%m/%d"}
|
||||
// pour la formater</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.register.modifier">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.register.modifier">
|
||||
<title>register_modifier</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
@@ -14,15 +15,15 @@
|
||||
Il faut passer en param<61>tre le nom du modificateur de variables,
|
||||
suivi de la fonction PHP qui l'impl<70>mente.
|
||||
</para>
|
||||
<example>
|
||||
<title>register_modifier</title>
|
||||
<example>
|
||||
<title>register_modifier</title>
|
||||
<programlisting>
|
||||
// associons la fonction PHP stripslashes a un modificateur Smarty.
|
||||
|
||||
$smarty->register_modifier("sslash","stripslashes");
|
||||
|
||||
// vous pouvez maintenant utiliser {$var|sslash} pour supprimer les slash des variables</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.register.object">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.register.object">
|
||||
<title>register_object</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
@@ -17,24 +20,24 @@
|
||||
<link linkend="advanced.features.objects">objet</link> de
|
||||
ce manuel pour des exemples.
|
||||
</para>
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.register.outputfilter">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.register.outputfilter">
|
||||
<title>register_outputfilter</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.register.postfilter">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.register.postfilter">
|
||||
<title>register_postfilter</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
@@ -16,24 +21,24 @@
|
||||
pour avoir plus de renseignements sur la faton de param<61>trer les fonctions
|
||||
de post-compilation.
|
||||
</para>
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
|
||||
Warning: Unknown modifier 'l' in /home/user/didou/cvs/smarty/docs/fr/clean.php on line 56
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.register.prefilter">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.register.prefilter">
|
||||
<title>register_prefilter</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
@@ -16,24 +21,24 @@
|
||||
pour avoir plus de renseignements sur la faton de param<61>trer les fonctions
|
||||
de pr<70>-compilation.
|
||||
</para>
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
</sect1>
|
||||
<!-- 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
|
||||
-->
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.register.resource">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.register.resource">
|
||||
<title>register_resource</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
@@ -17,14 +18,14 @@
|
||||
pour avoir plus d'informations sur la faton de param<61>trer une fonction
|
||||
r<>cup<75>rant des templates.
|
||||
</para>
|
||||
<example>
|
||||
<title>register_resource</title>
|
||||
<example>
|
||||
<title>register_resource</title>
|
||||
<programlisting>
|
||||
$smarty->register_resource("db", array("db_get_template",
|
||||
"db_get_timestamp",
|
||||
"db_get_secure",
|
||||
"db_get_trusted"));</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.template.exists">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.template.exists">
|
||||
<title>template_exists</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.trigger.error">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.trigger.error">
|
||||
<title>trigger_error</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.unregister.block">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.unregister.block">
|
||||
<title>unregister_block</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.unregister.compiler.function">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.unregister.compiler.function">
|
||||
<title>unregister_compiler_function</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.unregister.function">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.unregister.function">
|
||||
<title>unregister_function</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
@@ -12,14 +13,14 @@
|
||||
Utilis<69>e pour d<>sallouer dynamiquement un plugin de fonction
|
||||
de templates. Passez en param<61>tres le nom de la fonction de templates.
|
||||
</para>
|
||||
<example>
|
||||
<title>unregister_function</title>
|
||||
<example>
|
||||
<title>unregister_function</title>
|
||||
<programlisting>
|
||||
// nous ne voulons pas que les designers de templates aient acc<63>s
|
||||
// au syst<73>me de fichiers.
|
||||
|
||||
$smarty->unregister_function("fetch");</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision$ -->
|
||||
<sect1 id="api.unregister.modifier">
|
||||
<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
|
||||
<sect1 id="api.unregister.modifier">
|
||||
<title>unregister_modifier</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
@@ -12,14 +13,14 @@
|
||||
Utilis<69>e pour d<>sallouer dynamiquement un plugin modificateur de variable.
|
||||
Passez en param<61>tre le nom du modificateur de templates.
|
||||
</para>
|
||||
<example>
|
||||
<title>unregister_modifier</title>
|
||||
<example>
|
||||
<title>unregister_modifier</title>
|
||||
<programlisting>
|
||||
// nous ne voulons pas que les designers de templates
|
||||
// suppriment les balises des <20>lements
|
||||
|
||||
$smarty->unregister_modifier("strip_tags");</programlisting>
|
||||
</example>
|
||||
</example>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user