mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-04 19:54:14 +02:00
fix bug with decimal numbers in if statements, misc doc updates
This commit is contained in:
+18
-12
@@ -1462,10 +1462,9 @@ s.</programlisting>
|
||||
<chapter id="language.combining.modifiers">
|
||||
<title>Combining Modifiers</title>
|
||||
<para>
|
||||
You can apply as many modifiers as you like to a variable. The modifiers
|
||||
will be applied to the variable in the order they are combined, from left
|
||||
to right. The modifier have to be separated with a <literal>|</literal>
|
||||
(pipe) symbol.
|
||||
You can apply any number of modifiers to a variable. They will be
|
||||
applied in the order they are combined, from left to right. They must
|
||||
be separated with a <literal>|</literal> (pipe) character.
|
||||
</para>
|
||||
<example>
|
||||
<title>combining modifiers</title>
|
||||
@@ -3107,17 +3106,24 @@ OUTPUT:
|
||||
<example>
|
||||
<title>cycle</title>
|
||||
<programlisting>
|
||||
{* initialize the values *}
|
||||
{cycle values="#eeeeee,#d0d0d0"}
|
||||
{cycle}
|
||||
{cycle}
|
||||
|
||||
{section name=rows loop=$data}
|
||||
<tr bgcolor="{cycle values="#eeeeee,#d0d0d0"}">
|
||||
<td>{$data[rows]}</td>
|
||||
</tr>
|
||||
{/section}
|
||||
|
||||
OUTPUT:
|
||||
|
||||
#eeeeee
|
||||
#d0d0d0
|
||||
#eeeeee</programlisting>
|
||||
<tr bgcolor="#eeeeee">
|
||||
<td>1</td>
|
||||
</tr>
|
||||
<tr bgcolor="#d0d0d0">
|
||||
<td>2</td>
|
||||
</tr>
|
||||
<tr bgcolor="#eeeeee">
|
||||
<td>3</td>
|
||||
</tr>
|
||||
</programlisting>
|
||||
</example>
|
||||
</sect1>
|
||||
<sect1 id="language.function.debug">
|
||||
|
||||
Reference in New Issue
Block a user