初学者请问php模板标签的意思

WBOY
Release: 2016-06-13 12:58:10
Original
907 people have browsed it

菜鸟请教php模板标签的意思
请问 


        

中间的模板标签tag()是什么意思?我只知道传递的参数是什么意思,但不知道tag()是怎么回事,也不知道用哪个页面模板,希望多多指教。
------解决方案--------------------
出自哪里的代码
------解决方案--------------------
引用:
请问 

        

中间的模板标签ta……

tag()就是一个方法名 找之前加载的php 会找到这个方法的 
<br />
<!--{tag("table=link&condition=status=3 &pagesize=45&order=listorder desc,itemid desc&class=db")}--><br />
/*****************/<br />
<?php<br />
function tag($url){<br />
/*方法内容*/<br />
}<br />
?><br />
<br />
<?php tag("table=link&condition=status=3 &pagesize=45&order=listorder desc,itemid desc&class=db")?><br />
Copy after login

------解决方案--------------------
我个人理解好像是用smarty中定义的一个标签,在模板页面中的内容与引擎对应
Related labels:
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