-
Notifications
You must be signed in to change notification settings - Fork 0
/
DemoPlugin.class.php
43 lines (36 loc) · 1.49 KB
/
DemoPlugin.class.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2014 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: Dean <[email protected]>
// +----------------------------------------------------------------------
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;//插件是否有后台管理界面
public function install(){//安装方法必须实现
return true;//安装成功返回true,失败false
}
public function uninstall(){//卸载方法必须实现
return true;//卸载成功返回true,失败false
}
//实现的footer钩子方法
public function footer($param){
$config=$this->getConfig();
$this->assign($config);
$this->display('test');
}
}