mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-02 21:31:48 +01:00
commit Peter Morgan's patch to add more references/aka see also
some WS
This commit is contained in:
@@ -54,8 +54,10 @@
|
||||
</informaltable>
|
||||
<para>
|
||||
<emphasis>foreach</emphasis> loops are an alternative to
|
||||
<emphasis>section</emphasis> loops. <emphasis>foreach</emphasis> is
|
||||
used to loop over a single associative array. The syntax for
|
||||
<link
|
||||
linkend="language.function.section"><emphasis>section</emphasis></link>
|
||||
loops. <emphasis>foreach</emphasis> is used to loop over a single
|
||||
associative array. The syntax for
|
||||
<emphasis>foreach</emphasis> is much easier than
|
||||
<emphasis>section</emphasis>, but as a tradeoff it can only be used
|
||||
for a single array. <emphasis>foreach</emphasis> tags must be
|
||||
@@ -178,6 +180,10 @@
|
||||
<emphasis>total</emphasis> is used to display the number of iterations that this foreach
|
||||
will loop. This can be used inside or after the foreach.
|
||||
</para>
|
||||
<para>
|
||||
See also <link linkend="language.function.section">{section}</link> and
|
||||
<link linkend="language.variables.smarty.loops">$smarty.foreach</link>.
|
||||
</para>
|
||||
</sect2>
|
||||
</sect1>
|
||||
<!-- Keep this comment at the end of the file
|
||||
@@ -199,4 +205,4 @@
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
||||
|
||||
Reference in New Issue
Block a user