read out actual iteration of foreach in smarty php? -
I have a problem; I want to run a My code is so far: this Element but Grise Sebastian You can try: : Hope I help you foreach-loop and items will be created in the loop with the actual recurring number.
{= $ builder item = object name = foreach_gallery} {capture assign = shopbill}
& lt; Input type = "text" size = "2" name = "pic_id {$ smarty .foreach.foreach_gallery.iteration}" value = "{$ item-> field.id}" readable & gt;
{input ...} does not have any idea why this does not work in another case and how can I solve this problem ?
& lt; input type = "text" name = "articlename {$ smarty.foreach.foreach_gallery.iteration}" title = "Artikelbezeichnung:" & gt; Instead of
{input type = "text" name = "articlenam $ smarty.foreach.foreach_gallery.iteration" title = "Artikelbezeichnung:" }
Comments
Post a Comment