I am trying to include analytic.php into head.tpl in WHMCS but it keep giving me a error.
Analytic.php location : root/analytic.php
Head.tpl location : root/whmcs/template/six/includes/head.tpl
I saw on google, WHMCS accept smarty PHP, so i am trying to include with Smarty PHP Code in head.tpl.
Code :
{include_php file="../../../../analytic.php"};
Also Tried :
{php}{include_php file="../../../../analytic.php"};{/php}
Note : I have already enabled Smarty PHP in WHMCS
But when i am entering the code, the WHMCS site get stop working :(. What the solution to include PHP file inside WHMCS or .tpl file?
include_php is depreced as of Smarty 3.1.
{php}NO!{include_php file="../../../../analytic.php"};NO!{/php} is totally wrong.
you should create 'analytics.tpl' file and then include it {include}, file can contain analytics script.