assigning cycle to a variable

From: Date: Sun, 15 Dec 2002 00:51:31 +0000
Subject: assigning cycle to a variable
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6799@lists.php.net to get a copy of this message
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

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