$smarty->display('index2.tpl');

来源:互联网 发布:新浪网络经纪人 编辑:程序博客网 时间:2024/05/01 07:00
<HTML>
<HEAD>
<TITLE>index2.tpl</TITLE>
</HEAD>
<BODY bgcolor="#ffffff">




    An example:<br>


   
        phone: {$contacts.phone}
        <br>


            fax: {$contacts.fax}
        <br>


            cell: {$contacts.cell}
        <br>
   
    <p>


 


</body>

</html>

=========================================

<?php
/**
 * Example Application
 *
 * @package Example-application
 */


require '../libs/Smarty.class.php';


$smarty = new Smarty;


$smarty->assign("contacts", array("phone" => "1", "fax" => "2", "cell" => "3"));


$smarty->display('index2.tpl');




0 0
原创粉丝点击