templates_dir="templates"; $smarty->templates_c_dir="templates_c"; $smarty->"/> templates_dir="templates"; $smarty->templates_c_dir="templates_c"; $smarty->">

Home  >  Article  >  Backend Development  >  s.m.art exhibition smarty static experiment shows that the Internet is wrong ~ Haha

s.m.art exhibition smarty static experiment shows that the Internet is wrong ~ Haha

WBOY
WBOYOriginal
2016-07-29 08:35:121364browse

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.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn