Copy the code The code is as follows:
require_once("Smarty/libs/Smarty.class.php");
$smarty = new smarty();
$smarty->templates_dir="templates ";
$smarty->templates_c_dir="templates_c";
$smarty->left_delimiter="<{";
$smarty->right_delimiter="}>";
$smarty->assign( "title","You succeeded");
$smarty->display("test.html");
$c
$fp=fopen("ok.html","w");
fwrite($ fp,$content);
fclose($fp);
?>
The above introduces the s.m.art exhibition smarty static experiment and shows that it is wrong on the Internet ~ Haha, it includes the content of s.m.art exhibition. I hope it will be helpful to friends who are interested in PHP tutorials.