摘要: 1. 下载最新的smarty。2. 下载的smarty内核文件夹libs,放入php网站文件夹内。(安全起见,可自行修改文件夹名,如改名为smarty) 3. 分别在网站目录下建立templates、templates_c、configs、cache四个文件夹。 4. 在templates/目录下写模板,建立index.htm内容为:[php] view plaincopyprint?Inserttitlehere{$vice}OK,我们来测试一下,php调用smarty,编写如下程序:[php] view plaincopyprint?template_dir=SITE_ROOT.' 阅读全文
posted @ 2014-03-14 15:02 漠_北 阅读(388) 评论(0) 推荐(0) 编辑