> Smarty模板引擎中文在线手册 > unregister_function [注销函数]

unregister_function
注销函数

void unregister_function (string name)

Use this to dynamically unregister template function plugin. Pass in the template function name.

动态注销一个模板函数插件,参数是模板函数的名称。

Example 13-25. unregister_function
例子 13-35. 注销函数

// we don't want template designers to have Access to system files
// 让模板设计者不能操作系统文件

$smarty->unregister_function("fetch");