Re: [SMARTY-DEV] Smarty changes error_reporting() level

From: Date: Mon, 13 Oct 2003 08:24:06 +0000
Subject: Re: [SMARTY-DEV] Smarty changes error_reporting() level
References: 1 2 3  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1901@lists.php.net to get a copy of this message
messju mohr <messju@lammfellpuschen.de> wrote: > On Wed, Oct 08, 2003 at 12:01:33PM +0200, Jan Rosier wrote: >> I vote for this. >> >> I also think that turning off E_NOTICE maybe not necessary anymore >> altogether since the assign function was changed to accept empty >> values. (see >> http://cvs.php.net/diff.php/smarty/libs/Smarty.class.php?r1=1.315&r2=1.316&ty=h). >> All variables that are assigned in php will also be available in the >> template > > no. people may rely on the fact that smarty suppresses E_NOTICE on > undefined variables in the template. > > "{$var}" emits a notice if $var isn't assigned at all. > >> Greetings, >> Jan Rosier Ok, to me a notica indicates that I made an typo in the template, but you right some one else might use {$var1} {$var2} {$var3} and only assign it when needed. Greetings, Jan Rosier * Software is mind work. Having the right frame of mind is essential. *

« previous php.smarty.dev (#1901) next »