Home > Backend Development > PHP Tutorial > 程序员 - thinkphp模板问题,如何在tp框架自己的模板中判断数组是否为空?

程序员 - thinkphp模板问题,如何在tp框架自己的模板中判断数组是否为空?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:43:54
Original
2719 people have browsed it



  • {$vo.update_time|date="Y/m/d",###}

  • {$vo.login_name}

  • +{$vo.account}


  • 回复内容:



  • {$vo.update_time|date="Y/m/d",###}

  • {$vo.login_name}

  • +{$vo.account}


  • <code class="lang-html"><volist name="list" id="vo" empty="暂时没有数据">
    {$vo.id}|{$vo.name}
    </volist>
    </code>
    Copy after login

    http://document.thinkphp.cn/manual_3_2.html#empty
    多看TP官方的文档

    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
    Latest Issues
    php data acquisition?
    From 1970-01-01 08:00:00
    0
    0
    0
    PHP extension intl
    From 1970-01-01 08:00:00
    0
    0
    0
    How to learn php well
    From 1970-01-01 08:00:00
    0
    0
    0
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template