[SMARTY] looping through variable names
Kathleen Krause-Thomson <[email protected]>
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Organization | Texas State Library and Archives Commission |
| Message-ID | <[email protected]> |
Hello,
I have examined the manual and am not sure how to proceed. I need to
loop through array variable names as if they were variable variables.
How would I do this in Smarty?
<p>Job Title: {$budget1.jobTitle}
Percent of Full Time:{$budget1.percentFullTime}</p>
Next section needs to be:
<p>Job Title: {$budget2.jobTitle}
Percent of Full Time:{$budget2.percentFullTime}</p>
And so on until a certain max value is reached, $budgetPos (value is 4,
for example, {$budget4.jobTitle).
Thanks ever so much!
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php