RE: [SMARTY] multiple counters

From: Date: Thu, 13 Feb 2003 16:26:41 +0000
Subject: RE: [SMARTY] multiple counters
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7735@lists.php.net to get a copy of this message
just like that. {counter} {counter} {counter} {counter name="c2" start=10} {counter name="c2"} {counter name="c2"} Monte On Thu, 2003-02-13 at 10:22, Semenov Dmitry wrote: > But the question is how to reference to these counters in the template? > I mean > {counter} > {counter} > > Dmitry > > -----Original Message-----ee > From: Monte Ohrt [mailto:monte@ispi.net] > Sent: Thursday, February 13, 2003 8:37 PM > To: Semenov Dmitry > Cc: 'Smarty General' > Subject: RE: [SMARTY] multiple counters > > you have to give them unique names (docs says id, I'll change that) > > {counter start=1} > > {counter name="c2" start=10} > > > > On Thu, 2003-02-13 at 08:44, Semenov Dmitry wrote: > > I have to separate two counters on one template. > > > > {counter} > > {counter} > > > > I do want to see > > 1 > > 10 > > > > if I have set up two different counters, one start from 1 and second > > from 10, but how to do it? The documentation does'nt has an example > > > > > > -----Original Message----- > > From: Monte Ohrt [mailto:monte@ispi.net] > > Sent: Thursday, February 13, 2003 7:23 PM > > To: Semenov Dmitry > > Cc: Smarty General > > Subject: Re: [SMARTY] multiple counters > > > > What does your template look like? The "counter" function should do > what > > you want. > > > > > > On Thu, 2003-02-13 at 04:58, Semenov Dmitry wrote: > > > Hello Please help me, > > > > > > How can I run multiple counters and show their data on the page? > > > > > > I define two counter and give them different name, bit it does not > > work, > > > help please. > > > > > > Dmitry -- Monte Ohrt <monte@ispi.net>

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