Re: [SMARTY] Bring back E_ALL!
| From: | Monte Ohrt | Date: | Mon, 15 Apr 2002 19:16:55 +0000 |
| Subject: | Re: [SMARTY] Bring back E_ALL! | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3747@lists.php.net to get a copy of this message | ||
template designers shouldn't need to be making accomodations for whether or not a variable is set, they may not even know what that means. When a variable is printed {$var}, it either prints a value or not. isset() is only adding an overhead that the engine should be taking care of, not the template designer.
Monte
Luc Saint-Elie wrote:
At 20:08 15/04/02 +0200, Gabor Hojtsy wrote: To suppress warnings, I use : {if isset($var)}-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.{$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