RE: [SMARTY] Bring back E_ALL!
| From: | LIMBOURG Arnaud | Date: | Mon, 15 Apr 2002 15:11:02 +0000 |
| Subject: | RE: [SMARTY] Bring back E_ALL! | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-3735@lists.php.net to get a copy of this message | ||
hey, it's dirty !!
templates should NOT contain that level of code !!
assign it to empty, but assign it !!
> Hello,
>
> To suppress warnings, I use :
>
> {if isset($var)}
> {$var}
> {/if}
>
> Somehow its a good thing because with the new settings
> (register_global=off) on PHP 4.2 we will have to be more
> aware of variables
> (and this is probably a very good thing for tourist like me..)
>
> I understand that the warning is strange in case of :
> {$var|default:"blah blah"}
>
> But you may want to try isset()
>
> Luc
>
> At 01:00 15/04/02 +0200, Michal Prinke wrote:
>
> >It is a shame that even {$var|default:"blah blah"} causes warnings
> >when E_ALL is on...
> >
> >--
> >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
>