4,250
社区成员
发帖
与我相关
我的任务
分享include('Smarty.class.php');
// create object
$smarty = new Smarty;
// assign some content. This would typically come from
// a database or other source, but we'll use static
// values for the purpose of this example.
$smarty->assign('name', 'george smith');
$smarty->assign('address', '45th & Harris');
// display it
$smarty->display('index.tpl');<?php
include_once("smarty_inc.php");
$name="110";
$smarty = new Smarty;
$smarty->assign("title",$name);
$smarty->display("index.htm");
?>