cycling
| From: | D_C | Date: | Fri, 17 Jun 2005 23:32:19 +0000 |
| Subject: | cycling | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-12704@lists.php.net to get a copy of this message | ||
is there a way to use a smarty variable as a cycle parameter? tried:
{cycle values=0,stepX assign='posX' }
{cycle values=0,$stepX assign='posX' }
{cycle values=0,
$stepX assign='posX' }
{cycle values='0,$stepX' assign='posX' }
but i get the values 0 and "stepX" as a string...
otherwise I guess i can do this but it seems verbose:
{cycle values='0,1' assign='posX' }
{assign var=posX value=$posX*$stepX}
thanks in advance!