This article briefly describes Smarty’s template variable output method. Share it with everyone for your reference, the details are as follows:
config.inc.php configuration file is as follows:
include_once('smarty/Smarty.class.php'); $smarty=new Smarty(); $smarty->c><pre class="brush:php;toolbar:false">include('./config.inc.php'); $title="php测试标题"; $c><pre class="brush:php;toolbar:false">测试数组:标题 | 姓名 | 年龄 -------------------------------------------------------------------------------- 测试内容为:smarty练习! 循环新闻内容为: php程序测试 - 2015-08-01 php视频教程 - 2015-08-02 smarty学习 - 2015-08-03
I hope that what is described in this article will be helpful to everyone’s PHP program design based on Smarty template.
The above introduces the original smarty template smarty simple template variable output method, including the content of smarty templates. I hope it will be helpful to friends who are interested in PHP tutorials.