Re: [SMARTY-DEV] Re: 'default'-modifier causes a php-notice

From: Date: Sat, 15 Mar 2003 20:23:12 +0000
Subject: Re: [SMARTY-DEV] Re: 'default'-modifier causes a php-notice
References: 1 2 3 4 5 6 7 8  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-965@lists.php.net to get a copy of this message
On 15 Mar 2003 14:18:03 -0600, Monte Ohrt wrote: > What do you mean it ignored any @ operator? In the templates? There > shouldn't be any @ operators in the templates. > I guess we need to make a choice: should display of an undefined > template variable show a notification message or not.... Ok, the reason I wanted to use @ was that |default returned an error, since this is now fixed... I can only agree that Smarty SHOULD return notices of undefined variables... When developing the actual template (in debug mode) it is _VERY_ nice to know WHY your template does not work.... to know this, one need to be able to get errors... still in debug mode I say we indeed the undefined variables in this senario: {$var} but not in this: {$var|default:"gah"} Which was all I and Nagger was interested in.... -- Tom Sommer, denmark www.tsn.dk - www.dreamcoder.dk

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