Home >Backend Development >PHP Tutorial >Detailed explanation of module.php micro-engine development

Detailed explanation of module.php micro-engine development

小云云
小云云Original
2018-03-15 09:04:104046browse

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!

Statement:
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