Re: [SMARTY] Bring back E_ALL!
| From: | Luc Saint-Elie | Date: | Mon, 15 Apr 2002 18:15:42 +0000 |
| Subject: | Re: [SMARTY] Bring back E_ALL! | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3744@lists.php.net to get a copy of this message | ||
At 20:08 15/04/02 +0200, Gabor Hojtsy wrote:
To suppress warnings, I use :
{if isset($var)}
{$var}
{/if}
That's ugly, brrr... Set error_reporting(E_ALL ^ E_NOTICE) in a
subclass of Smarty. That's much more convinient.
Hello,
I don't understand why it's "ugly" , or more exactly why hiding an error is less ugly than suppressing it ?
(this is not a critic this is a real question)
Luc