Smarty教程简单使用方法

1.下载smarty(这里都不用说,去官网自行下载)

2.解压文件:

3.这里在创建两个文件夹:

4.根目录创建index.php

index.php(引入核心文件)

<?php
header("content-type:text/html;charset=utf-8");
// +----------------------------------------------------------------------
// |授课名称:PHP之smarty代码实现
// +----------------------------------------------------------------------
// | 时间:2021年4月17日10:00:04
// +----------------------------------------------------------------
路是自己走出来的,而不是选出来的。
原文地址:https://www.cnblogs.com/mo3408/p/15741761.html