mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 11:24:27 +02:00
another example
This commit is contained in:
@@ -62,6 +62,17 @@ The value of $name is Bob.
|
||||
</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>
|
||||
|
Reference in New Issue
Block a user