Re: counter as a variable

From: Date: Sat, 24 Nov 2001 20:15:52 +0000
Subject: Re: counter as a variable
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2037@lists.php.net to get a copy of this message
Maybe we could add a new attribute to counter: {counter assign="varname"} {$varname} Otherwise, this is currently one workaround: {capture name="varname"}{counter}{/capture} {$smarty.capture.varname} Jorge Restrepo - WebTeam wrote: > hello > > Is there someway to catch the value of {counter) within a template to become > a variabe? (by ex: $counter??) > > so you can then do something like {math equation="counter + 5"} ? > > by the way, can you grab the value of that math equation to a variable? > > thanks > Jorge > > --- > You are currently subscribed to smarty as: monte@ispi.net > To unsubscribe send a blank email to $subst('Email.Unsub') > Visit Smarty's homepage at > http://www.phpinsider.com/php/code/Smarty/

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