
smarty
lerdor
专注网站开发
展开
-
smarty细节
smarty项目中,保证所有的编码都是utf-8 模板语法中的左限定符后面不能有空格。 例如 {*html_options values=$cityid output=$city*}原创 2012-10-10 09:22:57 · 313 阅读 · 0 评论 -
模板是smarty,怎样用session语句,foreach语句来显示数组
php文件中的数组是:$student=array( array('id'=>'s101','name'=>'zhangsan'), array('id'=>'s102','name'=>'wangwu'), array('id'=>'s103','name'=>'lisi') ); 模板文件中的写法是: {s原创 2012-10-15 11:30:50 · 1301 阅读 · 0 评论