lsoknet
V2EX  ›  问与答

问个 dedecms 的初级问题

  •  
  •   lsoknet · Jul 25, 2016 · 1333 views
    This topic created in 3592 days ago, the information mentioned may be changed or developed.

    如下所示,其中的 $arc 对象是哪里定义的? {dede:php}$GLOBALS['变量名']=$arc->Fields['fieldname']{/dede:php}

    应用场景是,判断某字段为空时的输出,其中要调用其它字段: {dede:field.字段名 runphp='yes'} if(@me =='') { @me='值为空时的输出结果'; } else { @me=@me; } {/dede:field.字段名}

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3070 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 80ms · UTC 14:39 · PVG 22:39 · LAX 07:39 · JFK 10:39
    ♥ Do have faith in what you're doing.