Home > Backend Development > PHP Tutorial > smarty template smarty simple template variable output method original

smarty template smarty simple template variable output method original

WBOY
Release: 2016-07-28 08:27:24
Original
895 people have browsed it

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
Copy after login

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.

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