Page 1 of 1
while loop in smarty
Posted: Thu Dec 14, 2006 6:47 am
by nasir
How i apply while loop in smarty.give me suggestion.
Posted: Thu Dec 14, 2006 7:09 am
by amir
Posted: Thu Dec 14, 2006 11:12 am
by AKA Panama Jack
Or you could use my Smarty compatible Template Lite. It supports the WHILE tag.
http://templatelite.sourceforge.net/doc ... html#while
It is also much more versital than the plugin referenced above for Smarty. The WHILE tag in Template Lite uses the same expressions as the IF tag allowing a wide range of uses.
Template Lite also supports a FOR tag as well which is also missing from Smarty.
Posted: Thu Dec 14, 2006 11:15 am
by feyd
What a shameless plug.. not that I blame you.

Posted: Thu Dec 14, 2006 11:17 am
by RobertGonzalez
What are you trying to loop? Did you read the docs? Would you consider TemplateLite (it is my sworn ally in the fight against spaghetti code).
Posted: Thu Dec 14, 2006 11:18 am
by AKA Panama Jack
feyd wrote:What a shameless plug.. not that I blame you.

Heh heh, now I am just waiting to get my own forum on here for Template Lite and ADOdb Lite like d11wtq did with SwiftMailer.
