I had two script, one in .php and one in .tpl I need to pass the variable in php to the tpl. I tried this one, but nothinng works (but somehow
You can use this syntax:
$res = "Hello World!"; $this->context->smarty->assign('result', $res);
And passing to .tpl file like this:
{$result}
Hope this helping you.