cvs: smarty /docs/fr/designers/language-variables language-assigned-variables.xml
"gerald croes" <[email protected]>
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvsgerald1088934684@cvsserver> |
gerald Sun Jul 4 05:51:24 2004 EDT
Modified files:
/smarty/docs/fr/designers/language-variables
language-assigned-variables.xml
Log:
Added <![CDATA[ tags, <br> becomes <br />
http://cvs.php.net/diff.php/smarty/docs/fr/designers/language-variables/language-assigned-variables.xml?r1=1.4&r2=1.5&ty=u
Index: smarty/docs/fr/designers/language-variables/language-assigned-variables.xml
diff -u smarty/docs/fr/designers/language-variables/language-assigned-variables.xml:1.4 smarty/docs/fr/designers/language-variables/language-assigned-variables.xml:1.5
--- smarty/docs/fr/designers/language-variables/language-assigned-variables.xml:1.4 Sun May 23 12:32:19 2004
+++ smarty/docs/fr/designers/language-variables/language-assigned-variables.xml Sun Jul 4 05:51:24 2004
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
-<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial -->
+<!-- $Revision: 1.5 $ -->
+<!-- EN-Revision: 1.1 Maintainer: gerald Status: ready -->
<sect1 id="language.assigned.variables">
<title>Variables assignées depuis PHP</title>
<para>
@@ -67,7 +67,7 @@
]]>
</programlisting>
<para>
- Cela va afficher :
+ Ce qui donne en sortie :
</para>
<screen>
<![CDATA[
@@ -88,31 +88,42 @@
</para>
<example>
<title>Accès aux tableaux grâce à l'index</title>
-<programlisting>
-index.php:
-
+<programlisting role="php">
+<![CDATA[
+<?php
$smarty = new Smarty;
-$smarty->assign('Contacts',
+$smarty->assign('Contacts',
array('555-222-9876',
'[email protected]',
array('555-444-3333',
'555-111-1234')));
-$smarty->display('index.tpl');
-
-index.tpl:
-
-{$Contacts[0]}<br>
-{$Contacts[1]}<br>
-{* you can print arrays of arrays as well *}
-{$Contacts[2][0]}<br>
-{$Contacts[2][1]}<br>
-
-SORTIE:
-
-555-222-9876<br>
[email protected]<br>
-555-444-3333<br>
-555-111-1234<br></programlisting>
+$smarty->display('index.tpl');
+?>
+]]>
+</programlisting>
+<para>
+Ou index.tpl est :
+</para>
+<programlisting>
+<![CDATA[
+{$Contacts[0]}<br />
+{$Contacts[1]}<br />
+{* Vous pouvez également afficher des tableaux *}
+{$Contacts[2][0]}<br />
+{$Contacts[2][1]}<br />
+]]>
+</programlisting>
+<para>
+ce qui donne en sortie :
+</para>
+<screen>
+<![CDATA[
+555-222-9876<br />
[email protected]<br />
+555-444-3333<br />
+555-111-1234<br />
+]]>
+</screen>
</example>
</sect2>
<sect2 id="language.variables.objects">
@@ -124,13 +135,20 @@
<example>
<title>accéder aux attributs des objets</title>
<programlisting>
-nom: {$person->name}<br>
-email: {$person->email}<br>
-
-SORTIE:
-
-nom: Zaphod Beeblebrox<br>
-email: [email protected]<br></programlisting>
+<![CDATA[
+nom: {$person->name}<br />
+email: {$person->email}<br />
+]]>
+</programlisting>
+<para>
+Ce qui donne en sortie :
+</para>
+<screen>
+<![CDATA[
+nom: Zaphod Beeblebrox<br />
+email: [email protected]<br />
+]]>
+</screen>
</example>
</sect2>
</sect1>
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php