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

WBOY
Release: 2016-07-29 08:35:12
Original
1354 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!