What replaces register_modifier in Smarty 3

I am looking for an upgrade to Smarty 3 of 2 and a small number of modifiers registered with

register_modifier($ModifierName, $FunctionName) 

I can not find a place in the documentation where it indicates why I should change them, I tried.

 $Smarty->Register->Modifier( 

but get an error. Can someone point me to the documentation.

+4
source share
1 answer

It turns out he's moved to

 registerPlugin() 

http://www.smarty.net/docs/en/api.register.plugin.tpl

+5
source

All Articles