Re: [SMARTY-DEV] {counter} bug
| From: | Konstantin A. Pelepelin | Date: | Tue, 03 Jun 2003 14:53:59 +0000 |
| Subject: | Re: [SMARTY-DEV] {counter} bug | ||
| References: | 1 2 3 4 5 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1533@lists.php.net to get a copy of this message | ||
On Tue, 3 Jun 2003 15:23:30 +0200, Messju Mohr <messju@lammfellpuschen.de> wrote:
Code: |{{counter name=c1 assign=index start=0 print=true}}<br> {{$index}}:{{counter name=c1}}:{{$index}} <br> {{$index}}:{{counter name=c1}}:{{$index}} <br>
For c1 print=true should be ignored since 'assign' is used. 'start' value is not reset in 2nd block.
i agree, that start=0 should reset the counter, but why should the value not be printet if you say {counter print=true} ?Docs say "assigned instead of being output", and that is how it works in 2.5.0. I think, it should work as |0 0:1:1 1:2:2 Since it remembers 'assign', it should remember 'print', and need to correct docs. But then it will not be compatible with 2.5.0 (and earlier, I think) WBR, Konstantin A. Pelepelin