用了新版本的SPEEDPHP---smartY就出问题了

#1 阳光小老鼠

Smarty Error: Syntax Error in template "E:\AppServ\www/tpl\bill/look.html" on line 70 "<{foreach from=$bill_look item=bill_look}>" item variable 'bill_look' may not be the same variable as at 'from'

2011-02-09 22:47:21

#2 jake

新版speedphp带上了smarty 3,smarty 3对模板语法的检查更严格了,你上面的出错提示是因为foreach的from和item同名了,在smarty 3这是不允许的——在smarty 2是建议不要使用。

2011-02-10 07:38:19

#3 阳光小老鼠

原来是同名,但JACK,现在SMARTY3的手册很少,不好找到资料

2011-02-10 08:50:58

#4 jake

原来是同名,但JACK,现在SMARTY3的手册很少,不好找到资料
阳光小老鼠 发表于 2011-2-10 08:50
http://www.smarty.net/docs/en/

2011-02-10 09:08:30