输入banner图图片脚本导航/分类

module.php微擎开发详解

本文主要和大家分享module.php微擎开发详解,包括它的使用方法和调用方法,希望能帮助到大家。

使用

 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'];

相关推荐:

zf2 module.php中实现redirect

以上就是module.php微擎开发详解的详细内容,更多请关注Gxl网其它相关文章!