You are here: looping through variable names « Smarty Templates Posts « IT news, forums, messages
looping through variable names

Posted by Kathleen Krause-Thomson on 08/18/05 01:05

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!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация