[SMARTY] accessing an array var with a variable name
"Kathleen Krause-Thompson" <[email protected]>
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <45057232A4AC6444B0F9452131E7446E030F40B2@exchange.win2k.tsl.state.tx.us> |
Thank you for help provided in the past.
This time, I am using the section tag and would like to access an array using the $smarty.section.name.index variable (see the ??? below).
--------------------------------
{section name=ill start=1 loop=$num+1 step=1}
<p>Job Title {$smarty.section.ill.index}
{if !empty($errors.budget?????.baseSalAmt)}<span id="errortext">{$errors.budget?????.baseSalAmt}</span>{/if}
{/section}
----------------------------
?????? is where I would like for the $smarty.section.ill.index to go, for example {$errors.budget2.baseSalAmt}. How would I access this array variable dynamically?
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php