lsoknet
V2EX  ›  问与答

问个 dedecms 的初级问题

  •  
  •   lsoknet · Jul 25, 2016 · 1495 views
    This topic created in 3692 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   ·   Privacy   ·   Solana   ·   5746 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 0c620bea · 29ms · UTC 03:14 · PVG 11:14 · LAX 20:14 · JFK 23:14
    ♥ Do have faith in what you're doing.