求讲解THINKHP模板调用函数

WBOY
Release: 2016-06-23 14:03:42
Original
990 people have browsed it

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


回复讨论(解决方案)

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

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!