|
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 |
Giogiosw Smarty n00b
Joined: 04 Apr 2016 Posts: 1
|
Posted: Mon Apr 04, 2016 8:32 pm Post subject: Variable tags {php} |
|
|
Hello
I need to perform this function
{php} myfunction ($var) {/php}
but the variable $var is not printed and then remains
myfunction ($var) , how do I fix ? |
|
Back to top |
|
elpmis Smarty Elite
Joined: 07 Jun 2007 Posts: 321
|
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Tue Apr 05, 2016 3:39 pm Post subject: Re: Variable tags {php} |
|
|
Giogiosw wrote: | Hello
I need to perform this function
{php} myfunction ($var) {/php}
but the variable $var is not printed and then remains
myfunction ($var) , how do I fix ? |
{$var|myfunction}
Direct PHP code execution is forbidden in templates. |
|
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
|