联系我们

微信扫描上方二维码

网站信息属性获取:

$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;
本文地址:https://www.xunruicms.com/doc/1254.html