Dzisiaj zacząłem pracować ze smarty i chciałbym się dowiedzieć jak ładować moduły , pod zmienna {$content} , były ładowane pliki php oraz ich szablony :
include('data/config.php'); $smarty->debugging = true; $smarty->caching = true; $smarty->cache_lifetime = 10; switch($_GET['do']) { case "music"; include ("music.php"); break; default: $tpl = $smarty->display("main.tpl"); break; } $smarty->assign('theme','templates'); $smarty->assign('login',$smarty->display('login.tpl')); $smarty->assign('content',$tpl); $smarty->display('index.tpl');