W3Cschool
恭喜您成為首批注冊(cè)用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
插件類(lèi)主文件
文件位于插件根目錄
命名格式:插件名+Plugin.class.php
<?php
//?+----------------------------------------------------------------------
//?|?ThinkCMF?[?WE?CAN?DO?IT?MORE?SIMPLE?]
//?+----------------------------------------------------------------------
//?|?Copyright?(c)?2013-2014?http://www.thinkcmf.com?All?rights?reserved.
//?+----------------------------------------------------------------------
//?|?Author:?Dean?<zxxjjforever@163.com>
//?+----------------------------------------------------------------------
namespace?plugins\Demo;//Demo插件英文名,改成你的插件英文就行了
use?Common\Lib\Plugin;
/**
?*?Demo
?*/
class?DemoPlugin?extends?Plugin{//Demo插件英文名,改成你的插件英文就行了
????????public?$info?=?array(
????????????'name'=>'Demo',//Demo插件英文名,改成你的插件英文就行了
????????????'title'=>'插件演示',
????????????'description'=>'插件演示',
????????????'status'=>1,
????????????'author'=>'ThinkCMF',
????????????'version'=>'1.0'
????????);
????????
????????public?$has_admin=1;//插件是否有后臺(tái)管理界面
????????public?function?install(){//安裝方法必須實(shí)現(xiàn)
????????????return?true;//安裝成功返回true,失敗false
????????}
????????public?function?uninstall(){//卸載方法必須實(shí)現(xiàn)
????????????return?true;//卸載成功返回true,失敗false
????????}
????????
????????//實(shí)現(xiàn)的footer鉤子方法
????????public?function?footer($param){
???????? $config=$this->getConfig();
???????? $this->assign($config);
???????? $this->display('widget');
????????}
????}
Copyright©2021 w3cschool編程獅|閩ICP備15016281號(hào)-3|閩公網(wǎng)安備35020302033924號(hào)
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號(hào)
聯(lián)系方式:
更多建議: