Re: assigning cycle to a variable

From: Date: Sun, 15 Dec 2002 01:13:19 +0000
Subject: Re: assigning cycle to a variable
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6802@lists.php.net to get a copy of this message
Paul Lockaby wrote:
Hi again, I want to assign {cycle} to a variable so that I can use it multiple times before it changes again? I tried this: {assign var="bgcolor" value=cycle} And this: {assign var="bgcolor" value=$cycle} But neither one of them works. Note that I have managed to make cycle work without assigning it to a variable, but unfortunately I need to set two HTML tables to be the same background color based on cycle. Thanks, Paul
Wait, I am dumb. I just call cycle again, but with advance=false. All taken care of by myself. Paul

« previous php.smarty.general (#6802) next »