This article mainly shares with you the detailed explanation of module.php micro-engine development, including its usage and calling methods. I hope it can help everyone.
Use
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'); }
to call:
$title = $this->module['config']['title']; $txt = $this->module['config']['info'];
Related recommendations:
zf2 Implement redirect in module.php
The above is the detailed content of Detailed explanation of module.php micro-engine development. For more information, please follow other related articles on the PHP Chinese website!