cvs: smarty /docs/en/designers/language-custom-functions language-function-assign.xml
"Peter 'Mash' Morgan" <[email protected]> Sat, 04 Mar 2006 15:10:13 -0000
| Newsgroups | gmane.comp.php.cvs.smarty |
|---|---|
| Message-ID | <cvspete_morgan1141485013@cvsserver> |
pete_morgan Sat Mar 4 15:10:13 2006 UTC
Modified files:
/smarty/docs/en/designers/language-custom-functions
language-function-assign.xml
Log:
another example
http://cvs.php.net/viewcvs.cgi/smarty/docs/en/designers/language-custom-functions/language-function-assign.xml?r1=1.6&r2=1.7&diff_format=u
Index: smarty/docs/en/designers/language-custom-functions/language-function-assign.xml
diff -u smarty/docs/en/designers/language-custom-functions/language-function-assign.xml:1.6 smarty/docs/en/designers/language-custom-functions/language-function-assign.xml:1.7
--- smarty/docs/en/designers/language-custom-functions/language-function-assign.xml:1.6 Tue Sep 13 19:03:11 2005
+++ smarty/docs/en/designers/language-custom-functions/language-function-assign.xml Sat Mar 4 15:10:13 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<sect1 id="language.function.assign">
<title>{assign}</title>
<para>
@@ -62,6 +62,17 @@
</screen>
</example>
+<example>
+ <title>{assign} with some maths</title>
+<para>This complex example must have the variables in backticks</para>
+ <programlisting>
+<![CDATA[
+{assign var=running_total value=`$running_total+$some_array[loop].some_value`}
+]]>
+ </programlisting>
+
+ </example>
+
<example>
<title>Accessing {assign} variables from a PHP script.</title>
<para>
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php