Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

How to use native PHP functions in smarty templates.

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
petrm
Smarty n00b


Joined: 18 Mar 2014
Posts: 1

PostPosted: Tue Mar 18, 2014 6:13 pm    Post subject: How to use native PHP functions in smarty templates. Reply with quote

Hello Smile

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP