Section & arrays problem

From: Date: Thu, 05 Dec 2002 12:59:51 +0000
Subject: Section & arrays problem
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6647@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I've found strange (to me) bug/feature in smarty {section ... loop} {/section} construction. I'll try to describe it. I have array $results. It contains three other, multidimensional and associative, arrays at index [1][2][3] index [0] is not used if I want to browse through this array via {section name=res loop=$results} ... bla bla ...{/section} i'll get on the output only 1st two items of this array. But if I'll assign something to index $result[0] I can surprisingly (to me) see on the output all 4 items (including[0]). So, is it bug or feature? TIA M.N. - -- Mirek Novak Anima Publishers, s.r.o. Prilucka 360, Zlin 760 01 Czech Republic tel/fax: +420577219132 GSM:+420603807837 jabber:mirek@jabber.cz ICQ:119499448 AUTO.CZ http://www.auto.cz NEWS.AUTO.CZ http://news.auto.cz FORMULE1.CZ http://www.formule1.cz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAj3vTccACgkQz+tW1WzgrpTNFwCeLk1iAipRZ+QduAX511jKuDVg 3S8AoJ+gL+pt2gusGmCwHH4HPF5YaejI =tRmB -----END PGP SIGNATURE-----

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