Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 2 matches
Smarty Forum Index
Author Message
  Topic: Add a counter into foreach
djibi

Replies: 5
Views: 130384

PostForum: Tips and Tricks   Posted: Thu Jul 19, 2012 9:09 am   Subject: Add a counter into foreach
Ok thanks so, what do you think about the code below ?

This code work fine and he write an html table with 4 products by line but, if the number of products is not div by 4 (EX :5 products), it wri ...
  Topic: Add a counter into foreach
djibi

Replies: 5
Views: 130384

PostForum: Tips and Tricks   Posted: Tue Jul 17, 2012 11:49 am   Subject: Add a counter into foreach
Hi,

i'm new with Smarty and i try to do something basic with a foreach loop.

I'll try to add a custom counter in the loop but that don't work ...

Here is my code :


{counter start=1 ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP