|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
petrm Smarty n00b
Joined: 18 Mar 2014 Posts: 1
|
Posted: Tue Mar 18, 2014 6:13 pm Post subject: How to use native PHP functions in smarty templates. |
|
|
Hello
IŽd like to use some native PHP function within the Smarty templates. I know the syntax should be {$tpl_var|php_func:arg1:agr2:...} but when I try to use for example number_format function this way: {$var|number_format:0:',':' '} it doesnŽt work and outputs syntax errors in sense that it cannot reckognize tag {$var|number_format:0:',':' '}.
Could anyone possibly give a hand please? |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|