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-&gt;assign('Contacts',
+$smarty->assign('Contacts',
     array('555-222-9876',
           '[email protected]',
           array('555-444-3333',
                 '555-111-1234')));
-$smarty-&gt;display('index.tpl');
-
-index.tpl:
-
-{$Contacts[0]}&lt;br&gt;
-{$Contacts[1]}&lt;br&gt;
-{* you can print arrays of arrays as well *}
-{$Contacts[2][0]}&lt;br&gt;
-{$Contacts[2][1]}&lt;br&gt;
-
-SORTIE:
-
-555-222-9876&lt;br&gt;
[email protected]&lt;br&gt;
-555-444-3333&lt;br&gt;
-555-111-1234&lt;br&gt;</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-&gt;name}&lt;br&gt;
-email: {$person-&gt;email}&lt;br&gt;
-
-SORTIE:
-
-nom: Zaphod Beeblebrox&lt;br&gt;
-email: [email protected]&lt;br&gt;</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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.