while loop in smarty

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nasir
Forum Newbie
Posts: 5
Joined: Thu Dec 07, 2006 7:36 am

while loop in smarty

Post by nasir »

How i apply while loop in smarty.give me suggestion.
amir
Forum Contributor
Posts: 287
Joined: Sat Oct 07, 2006 4:28 pm

Post by amir »

User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post 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. :D

Template Lite also supports a FOR tag as well which is also missing from Smarty.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

What a shameless plug.. not that I blame you. ;)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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).
User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post 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. :twisted:

:wink:
Post Reply