Home  >  Article  >  Backend Development  >  织梦的模板标签里怎么用php引用标签里的变量

织梦的模板标签里怎么用php引用标签里的变量

WBOY
WBOYOriginal
2016-06-23 14:02:331143browse

{dede:datalist}
  

 
    {dede:field.uname/}
    {dede:field.from_number/} 
    {dede:field.title/}
  
{/dede:datalist}

有没有办法用php源码的方式对这个{dede:field.uname/}进行判断?


回复讨论(解决方案)

奇怪!为什么要倒着来呢?

你在实例化DataListCP这个类时就可以判定sql查询的值,到模板里面在去判定没必要啊

你在实例化DataListCP这个类时就可以判定sql查询的值,到模板里面在去判定没必要啊
有点道理,呵呵

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