Home  >  Article  >  Backend Development  >  求讲解THINKHP模板调用函数

求讲解THINKHP模板调用函数

WBOY
WBOYOriginal
2016-06-23 14:03:42991browse

{$list['id']|function=###}这样可以正常调用,$list['id']取到的值是0,但如果改成{0|function=###}则没办法正常调用。直接在页面显示{0|function=###}。
求解


回复讨论(解决方案)

{:function($list['id'])}

{:function($list['id'])}
你看反了,我是要用常量。不过后来确实是用{:function(0)}这种方式写的。只是不明白{0|function=###}这样为什么不行

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn