扩展插件功能完善

测试扩展编写
This commit is contained in:
2016-09-18 23:30:26 +08:00
parent e818c386e2
commit 8e3a918182
4 changed files with 102 additions and 55 deletions

44
addons/test/Test.php Normal file
View File

@@ -0,0 +1,44 @@
<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: yangweijie <yangweijiester@gmail.com> <code-tech.diandian.com>
// +----------------------------------------------------------------------
namespace addons\test;
use app\common\controller\Addons;
/**
* 系统环境信息插件
* @author thinkphp
*/
class Test extends Addons {
public $info = array(
'name' => 'Test',
'title' => '测试',
'description' => '用于显示一些服务器的信息',
'status' => 1,
'author' => 'molong',
'version' => '0.1',
);
public function AdminIndex(){
}
public function test(){
}
public function install(){
return true;
}
public function uninstall(){
return true;
}
}