mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
clear up docs on index, iteration and rownum
This commit is contained in:
@@ -2277,7 +2277,7 @@ e-mail: jane@mydomain.com<p></programlisting>
|
|||||||
<para>
|
<para>
|
||||||
If the step and start section properties are not
|
If the step and start section properties are not
|
||||||
modified, then this works the same as the iteration section
|
modified, then this works the same as the iteration section
|
||||||
property.
|
property, except it starts on 0 instead of 1.
|
||||||
</para>
|
</para>
|
||||||
</note>
|
</note>
|
||||||
<example>
|
<example>
|
||||||
@@ -2362,7 +2362,9 @@ e-mail: jane@mydomain.com<p></programlisting>
|
|||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
NOTE: This is not affected by the section properties start, step and
|
NOTE: This is not affected by the section properties start, step and
|
||||||
max, unlike the index property.
|
max, unlike the index property. Iteration also starts with 1
|
||||||
|
instead of 0 like index. rownum is an alias to iteration, they work
|
||||||
|
identical.
|
||||||
</para>
|
</para>
|
||||||
<example>
|
<example>
|
||||||
<title>section property iteration</title>
|
<title>section property iteration</title>
|
||||||
@@ -2461,7 +2463,8 @@ e-mail: jane@mydomain.com<p></programlisting>
|
|||||||
<title>rownum</title>
|
<title>rownum</title>
|
||||||
<para>
|
<para>
|
||||||
rownum is used to display the current loop iteration,
|
rownum is used to display the current loop iteration,
|
||||||
starting with one.
|
starting with one. It is an alias to iteration, they work
|
||||||
|
identically.
|
||||||
</para>
|
</para>
|
||||||
<example>
|
<example>
|
||||||
<title>section property rownum</title>
|
<title>section property rownum</title>
|
||||||
|
Reference in New Issue
Block a user