配置属性获取方式

2024-01-26 13:41 小编

网站信息属性获取:

$cache = \Phpcmf\Service::L('cache')->get('site', SITE_ID);

模块配置属性获取:

$cache = \Phpcmf\Service::L('cache')->get('module-'.SITE_ID."-"."填写模块英文名");

全局表单配置属性获取:

$cache = \Phpcmf\Service::L('cache')->get('form-'.SITE_ID, "填写表单英文名");

表单名称: $cache['name']

表单seo标题:$cache['setting']['seo']['title']

模块表单配置属性获取:

$cache = \Phpcmf\Service::L('cache')->get('module-'.SITE_ID."-"."填写模块英文名", "form", "表单英文名");

评论插件-模块 配置属性获取:

$cache = \Phpcmf\Service::L('cache')->get('app-comment-'.SITE_ID, 'module', "模块目录"));

评论插件-模块表单 配置属性获取:

$cache = \Phpcmf\Service::L('cache')->get('app-comment-'.SITE_ID, 'mform', "模块目录-表单名"));

评论插件-全局表单 配置属性获取:

$cache = \Phpcmf\Service::L('cache')->get('app-comment-'.SITE_ID, 'form', "表单名"));

用户设置属性获取:

$cache = \Phpcmf\Service::C()->member_cache;


在线咨询 拨打电话

电话

13363039260

微信二维码

微信二维码