Detailed explanation of module.php micro-engine development

小云云
Release: 2023-03-21 13:02:01
Original
4001 people have browsed it

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');
   }
Copy after login

to call:

$title = $this->module['config']['title'];
$txt = $this->module['config']['info'];
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template