V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
lsoknet
V2EX  ›  问与答

问个 dedecms 的初级问题

  •  
  •   lsoknet · Jul 25, 2016 · 1299 views
    This topic created in 3575 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   ·   3032 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 04:51 · PVG 12:51 · LAX 21:51 · JFK 00:51
    ♥ Do have faith in what you're doing.