[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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.