Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [SMARTY] default modifier generates notice
On Tue, Mar 02, 2004 at 05:05:58PM +0200, David Förster wrote:
> Hello,
>
> when I use the default modifier for a simple variable which is not set
> the default value is printed but there's also a warning saying the
> variable is not set.
>
> Is there any way to supress that notice?

just as in php: lower the error-reporting.

> I had a look into the comiled templated but there is only a check if the
> variable is an array.
>
> - david

Report this thread to moderator Post Follow-up to this message
Old Post
Messju Mohr
03-19-04 06:28 PM


Re: [SMARTY] default modifier generates notice
On Tue, Mar 02, 2004 at 07:13:56PM +0100, messju mohr wrote:
> On Tue, Mar 02, 2004 at 05:05:58PM +0200, David Förster wrote: 
>
> just as in php: lower the error-reporting.

I just see the notice is alread silenced with the @-operator. You seem
to run a custom error-handler. see
http://php.net/manual/en/function.set-error-handler.php :

"... - however you are still able to read the current value of
error_reporting and act appropriately. Of particular note is that this
value will be 0 if the statement that caused the error was prepended
by the @ error-control operator. "

 
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

Report this thread to moderator Post Follow-up to this message
Old Post
Messju Mohr
03-19-04 06:28 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Smarty Templates archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:57 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.