“`(1)正确配置smarty。主要要实例化smarty对象,配置smarty模板文件的路径; (2)php页面中使用assign赋值 和display显示页面; (3)smarty模板文件中不允许出现php代码段,所有的注释,变量,函数都要包含在定界符内。 “` Was this helpful? YesNo 0 / 0 上一篇: 谈谈你对二次开发的理解? 下一篇: smarty在使用过程中需要注意哪些细节? 发表回复 取消回复0 Your email address will not be published. 在此浏览器中保存我的显示名称、邮箱地址和网站地址,以便下次评论时使用。