Re: [SMARTY] index in foreach loops

From: Date: Tue, 11 Jun 2002 17:44:53 +0000
Subject: Re: [SMARTY] index in foreach loops
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4781@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 11 June 2002 05:17 pm, Andrei Zmievski wrote: > On Tue, 11 Jun 2002, Thijs van der Vossen wrote: > > Am I right assuming there is no way to get an index number inside a > > foreach loop? > > You can get $smarty.foreach.<name>.iteration. Great. Thank you very much. We might need to add an example of this to the docs. In the '{$smarty.section}, {$smarty.foreach}' section (language.variables.smarty.loops.html) readers are told to read the 'foreach, foreachelse' section (language.function.foreach.html) for more information on the loop properties but there is nothing there. Maybe I can send you an example for inclusion in the docs? - -- Thijs van der Vossen / www.vandervossen.net / +31(0)624204845 Internet development, design, training and consultancy -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9BjcVEGwEFq4QOQIRAq2lAJ4jP+lCM9iyfPukAXV5e1ERRFgfOgCgzmGL S4tmluo25mnCrePO+bPyZio= =S9wF -----END PGP SIGNATURE-----

« previous php.smarty.general (#4781) next »