Re: [SMARTY] note about cycle

From: Date: Mon, 03 Jun 2002 16:55:02 +0000
Subject: Re: [SMARTY] note about cycle
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4547@lists.php.net to get a copy of this message
This is a bug and has been fixed in CVS for the next release of Smarty. The delimiter setting will now be remembered in subsequent calls. Papp Gyozo wrote:
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?
-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.

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