Have a look at the {$smarty}
reserved variable.
- You can get constants, using
{$smarty.const.CONST_NAME}
, but that will give you the compiled file's path in the case of__FILE__
- You can get separate the directory & the file, using
{$smarty.current_dir}
&{$smarty.template}