> Smarty模板引擎中文在线手册 > template_exists [模板是否存在]

template_exists
模板是否存在

bool template_exists (string template)

This function checks whether the specified template exists. It can accept either a path to the template on the filesystem or a resource string specifying the template.

检查制定的模板是否存在,参数template既可以是模板的文件路径,也可以是指定的资源字符串。

上一篇:
下一篇: