©
This document usesPHP Chinese website manualRelease
voidtrigger_error
(string error_msg, [int level])
This function can be used to output an error message using Smarty.levelparameter can be one of the values used for trigger_error() PHP function, i.e. E_USER_NOTICE, E_USER_WARNING, etc. By default it's E_USER_WARNING.
用来使用Smarty内置的方法输出错误信息。参数level可 以是PHP函数trigger_error()的一个参数值,如E_USER_NOTICE, E_USER_WARNING等,一般默认为E_USER_WARNING。