// do kazdeho souboru das jinou cast kodu?
$smarty->display('header.tpl');
$smarty->display('index.tpl');
$smarty->display('view.tpl');
$smarty->display('edit.tpl');
$smarty->display('footer.tpl');
--- index.php ---
$smarty->display('header.tpl');
$smarty->display('index.tpl');
$smarty->display('footer.tpl');
--- view.php ---
$smarty->display('header.tpl');
$smarty->display('view.tpl');
$smarty->display('footer.tpl');
--- edit.php ---
$smarty->display('header.tpl');
$smarty->display('edit.tpl');
$smarty->display('footer.tpl');
nebo, jestli mas nekde ulozene __FILE__, tak ho pouzijes pro sablonu?
$smarty->display(__FILE__.'.tpl');
Pripadne ho treba jeste nejak upravis, odstranis koncovku?