You are here: increment a smarty value « Smarty Templates Posts « IT news, forums, messages
increment a smarty value

Posted by John Nichel on 10/12/05 01:04

Long time php developer, but don't dabble too much into the Smarty
world, so I'm wondering if y'all can give me a hand. I'm trying to
increment a smarty value by 1 each time I go thru my while loop (added
while loop functionality to our Smarty compiler), but I can't find a
good way to do it. In fact, the only way that seems to work is doing it
like this....

{ while $test < 10 }
{ $test++ }
{ /while }

But that echo's out the variable each time thru the loop. Is there a
way in Smarty to do this without printing out the variable? Thanks.

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
john@kegworks.com

 

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

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