I have a smarty template file and I want to include code from a php file. It simply doesn't work. Here's the sfunc.php in templates folder:
function BeautySweet (){
echo 'Script works fine.';
}
?>
Now here's the .tpl file code I added:
{include_php 'templates/sfunc.php';}
{ BeautySweet ();}
I also tried:
{include_php 'sfunc.php';}
{ BeautySweet ();}
Still no luck.