Re: [SMARTY-DEV] Problem with counter and print="false"
| From: | messju mohr | Date: | Tue, 20 Jan 2004 16:45:29 +0000 |
| Subject: | Re: [SMARTY-DEV] Problem with counter and print="false" | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2045@lists.php.net to get a copy of this message | ||
On Tue, Jan 20, 2004 at 05:30:11PM +0100, Katana wrote:
> Hello,
>
> I have several scripts with counter and print="false" (the counter value
> is printed several times, and incremented once without being printed).
>
> But with Smarty 2.6.X (tested with .0 and .1), the value is displayed
> even with print="false".
>
> Could you confirm that behaviour ?
the attribute should be ' print=false ' not ' print="false" '
"false" would be a string and become true when casted to bool.
> Katana
>
> --
> Smarty Development Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php