How To Use A Function In Template (.tpl File)

I have a function in func.php


function fn_myaddon_number2text($number)
{
...
return $result;
}




I will transform numbers to text. I need get numbers from .tpl file.



Normally, this function is called like this: echo trim(fn_myaddon_number2text(“1250”));



How to use this function in tpl file?

hi,



please try this:

[quote]

{$number|fn_myaddon_number2text}[/quote]



best regards,

WSA team

And if you want to assign the result to the variable, please use:



{$my_var = $number|fn_myaddon_number2text}