Enable error handler to mute expected messages
public static muteExpectedErrors ( ) : void | ||
return | void |
{* Mute warning messages *} {$var|@muteExpectedErrors}
{* Mute expected errors for this block *} {muteExpectedErrors} {if $var == 1} {* do something *} {/if} {/muteExpectedErrors}In this example, the entire if statement block is wrapped in the `muteExpectedErrors` tag, which suppresses error messages that may be triggered by the condition or its processing. The Smarty template engine library is a popular package for PHP that provides advanced templating functionalities, including caching, template inheritance, and custom functions.
public static muteExpectedErrors ( ) : void | ||
return | void |