Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what replaces register_modifier in Smarty 3

I'm looking at upgrading to Smarty 3 from 2 and have a small number of modifiers registered using

register_modifier($ModifierName, $FunctionName)

I can't find the place in the documentation where it indicates what I should change these to, I've tried.

$Smarty->Register->Modifier(

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

like image 472
Toby Allen Avatar asked Aug 31 '12 06:08

Toby Allen


1 Answers

Turns out its been moved to

registerPlugin()

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

like image 122
Toby Allen Avatar answered Oct 24 '22 00:10

Toby Allen