mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +02:00
another example
This commit is contained in:
@@ -62,6 +62,17 @@ The value of $name is Bob.
|
|||||||
</screen>
|
</screen>
|
||||||
</example>
|
</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>
|
<example>
|
||||||
<title>Accessing {assign} variables from a PHP script.</title>
|
<title>Accessing {assign} variables from a PHP script.</title>
|
||||||
<para>
|
<para>
|
||||||
|
Reference in New Issue
Block a user