What is Smarty?
Why use it?
Use Cases and Work Flow
Syntax Comparison
Template Inheritance
Best Practices
Crash Course
You may use the Smarty logo according to the trademark notice.
For sponsorship, advertising, news or other inquiries, contact us at:
Smarty::muteExpectedErrors() — mutes expected warnings and notices deliberately generated by Smarty
string muteExpectedErrors();
muteExpectedErrors() registers a custom error handler using set_error_handler().
The error handler merely inspects $errno
and $errfile
to determine if the given error
was produced deliberately and must be ignored, or should be passed on to the next error handler.
Smarty::unmuteExpectedErrors()
removes the current error handler. Please note, that if you've registerd any custom error handlers
after the muteExpectedErrors() call, the unmute will not remove Smarty's muting error handler, but the one registered last.