I have an array defined, and with smarty debugging on it properly shows in the popup the content of the array.
The structure of the array is
charinfo.[0-#].[first, last, home]
So when I call
$charinfo.0.first
it returns the first name of the first array inside the charinfo array.
Now to display this array, I need to travel through each [0-#] array.
<{section name=customer loop=$counter}>
.<{$smarty.section.customer.index}>
<{/section}>
This does, for example if $counter = 2, display
Quote:
So now I have a way to cycle through the arrays 0-# (or more specifically 0-($counter-1))
but how do I add that index variable into an array call?
things I have tried, and failed with:
.<{$charinfo.($smarty.section.customer.index).first}>
.<{$charinfo.<{$smarty.section.customer.index}>.first}>
.<{$charinfo.{$smarty.section.customer.index}.first}>
.<{$charinfo.".$smarty.section.customer.index.".first}>
.<{$charinfo."$smarty.section.customer.index".first}>
.<{$charinfo.$smarty.section.customer.index.first}> **
** This one, unlike the others, didn't "nuke" the page. The paged looks normal, but still doesn't return any values
the Smarty Debug window displays nothing about the section loop, or any of the calls inside the loop, so I can't find a use for it in this situation.
Note- the leading .'s are placeholders