如下所示,其中的 $arc 对象是哪里定义的?
{dede:php}$GLOBALS['变量名']=$arc->Fields['fieldname']{/dede:php}
应用场景是,判断某字段为空时的输出,其中要调用其它字段:
{dede:field.字段名 runphp='yes'}
if(@me =='')
{
@me='值为空时的输出结果';
}
else
{
@me=@me;
}
{/dede:field.字段名}
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
欢迎选择我的课程,让我们一起见证您的进步~~