Use this to dynamically register modifier plugin. Pass in the
template modifier name, followed by the PHP function that it
implements it.
Пример 13-23. register_modifier
// let's map PHP's stripslashes function to a Smarty modifier.
$smarty->register_modifier("sslash","stripslashes");
// now you can use {$var|sslash} to strip slashes from variables