テンプレートの継承を使用するときに Smarty にsrc & href属性の値を正しい URL に変換させる方法はありますか?
例:
ファイル: web/tpl/layout.tpl
<img src="../img/logo.png" />
{block name=content}{/block}
ファイル: index.tpl
{extends file="web/tpl/layout"}
{block name=content} home page content here{/block}
ファイル: dir/index.tpl
{extends file="../web/tpl/layout"}
{block name=content} an other page content here{/block}