assign($smarty_array[$k],$$smarty_array[$k]); } if(!isset($file) || $file == "Home") $smarty->display("templates/template.tpl"); else $smarty->display("templates/template1.tpl"); ?>