I have registered a block function which takes care of translation.
$smarty->register_block(“translate”, “do_translation”);
function do_translation ($params, $content, &$smarty, &$repeat)
{
…
}
Can i somehow determine by using the $smarty object in PHP, which template file caused the function call?
Or howelse could i fetch inside php, which template currently is rendered?
The third parameter is the Smarty object. I’m not sure, but you can try
or