Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
How to use native PHP functions in smarty templates.

 
Post new topic   Reply to topic    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:   
Post new topic   Reply to topic    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