Jump to content

easiest way to call a php function? Rate Topic   * * * * - 1 votes

 
  • wurdup
  • Newbie
  • Members
  • Join Date: 04-Apr 12
  • 3 posts

Posted 04 April 2012 - 12:14 AM #1

Complete noob here. Whats the best and most secure way to use a simple php function with return variable when calling from a tpl file?

 
  • Alt-team
  • Member
  • Members
  • Join Date: 18-Jan 11
  • 662 posts

Posted 04 April 2012 - 11:43 AM #2

Hello, wurdup!

My recommendation is to use
{$var1|any_php_function:$var2} to display function value
{assign var="return_var" value=$var1|any_php_function:$var2} to assign function value

Best regards, Alt-team

 
  • wurdup
  • Newbie
  • Members
  • Join Date: 04-Apr 12
  • 3 posts

Posted 04 April 2012 - 11:44 AM #3

okay thank you