lsoknet
V2EX  ›  问与答

问个 dedecms 的初级问题

  •  
  •   lsoknet · Jul 25, 2016 · 1331 views
    This topic created in 3591 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   ·   1096 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 18:10 · PVG 02:10 · LAX 11:10 · JFK 14:10
    ♥ Do have faith in what you're doing.