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

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

WBOY
Release: 2016-06-23 14:02:33
Original
1168 people have browsed it

{dede:datalist}
  

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

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


回复讨论(解决方案)

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

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

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

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