使用
public function settingsDisplay($settings)
{
global $_W, $_GPC;
if (checksubmit()) {
$dat = array('title' => $_GPC['title'], 'info' => $_GPC['info'], 'shareimg' => $_GPC['shareimg']);
$this->saveSettings($dat);
message('保存成功', 'refresh');
}
include $this->template('setting');
}
调用:
$title = $this->module['config']['title'];
$txt = $this->module['config']['info'];
功能介绍
本文介绍了如何使用PHP中的模块设置显示方法settingsDisplay,包括提交检查、数据保存及模板调用等核心步骤。通过实例展示了如何获取配置信息如标题、简介和分享图片。
3265

被折叠的 条评论
为什么被折叠?



