1. 01.php为主程序,调用smarty模板遍历输出:
<?php include './include/Mysql.class.php'; include './libs/Smarty.class.php'; $db=new Mysql; $smarty=new Smarty; $lists=$db->getALL('use...
<?php /*1.加载自定义函数使用include("")或者include ""都可以; 2.php中的include功能并不只是简单的包含,而是包含其他类型文件的同时并对文件进行了处理:对非PHP文件直接输出,而对php文件可以理解为只是拷贝了其中的内容; 3.对非php文件可以多次包含,因为多次包含就是多次输出程序并...