note about cycle

From: Date: Mon, 27 May 2002 10:15:06 +0000
Subject: note about cycle
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4401@lists.php.net to get a copy of this message
Hi, I' m using cycle function in one of my recent projects. IMHO, it's a really handy plug-in, but the docs should clarify that if one uses cycle with string values (not array) and non-default delimiter (anything different from ","), the delimiter must be supplied to each call of cycle, like: {cycle name=repeat values="grid1 grid2" delimiter=" "} {cycle name=repeat delimiter=" "} For some unexplainable reasons, I expected that delimiter doesn't have to be supplied but the first, so-called "initialization" step only, like: {cycle name=repeat values="grid1 grid2" delimiter=" "} {cycle name=repeat} BTW, do you think using cycle in this way is more comfortable? -- Papp, Győző - pgerzson@freestart.hu

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