Re: [SMARTY] assigning zero
| From: | webmaster at rpgateway dot de | Date: | Thu, 10 Oct 2002 09:16:43 +0000 |
| Subject: | Re: [SMARTY] assigning zero | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6111@lists.php.net to get a copy of this message | ||
I found the problem. The problem was that I defined the variable in the
template like this :
{$content|default:""}
i deleted the default-part and now it is working. It seems that smarty
interprets 0 as no value, so that the default-value (nothing) jumped in.
Good to know for future use i guess.
cu, Christian
----- Original Message -----
From: "Pieter Van Winckel" <pvw@aqs-carcontrol.be>
To: <Christian@aqs-carcontrol.be>; <St@366ber.ws-pieter>
Cc: "smarty" <smarty-general@lists.php.net>
Sent: Thursday, October 10, 2002 8:45 AM
Subject: Re: [SMARTY] assigning zero
> On Wed, Oct 09, 2002 at 09:34:02PM +0200, Christian St?ber wrote:
> > Hi,
> >
> > I want to assign the value 0 (zero) to my template but it just does not
> > print anything. I`m using Smarty 2.3.0. Any ideas?
> >
> > Thanks, Christian
> >
> More info please like the assing, because normally you just
> say $smarty->assign('var',0);
> >
> >
> > --
> > Smarty General Mailing List (http://smarty.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>