Kod
{if empty($smarty.get.id)}
{include file=zawartosc.tpl}
{else}
{include file=$smarty.get.id}
{/if}
{include file=zawartosc.tpl}
{else}
{include file=$smarty.get.id}
{/if}
Teraz jeżeli get jest pusty to wyświetla prawidłowo , ale jeżeli get już przybiera wartość np sonda to dostaje komunikat z errorem.
Kod
Warning: Smarty error: unable to read resource: "sonda" in /home/xxx/xxx/xxx/public_html/0.2/libs/Smarty.class.php on line 1092