1
<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: Dean <zxxjjforever@163.com>
// +----------------------------------------------------------------------
namespace plugins\demo;
//Demo插件英文名,改成你的插件英文就行了
use cmf\lib\Plugin;
//Demo插件英文名,改成你的插件英文就行了
class DemoPlugin extends Plugin
{
public $info = [
'name' => 'Demo', //Demo插件英文名,改成你的插件英文就行了
'title' => '插件演示',
'description' => '插件演示',
'status' => 1,
'author' => 'ThinkCMF',
'version' => '1.0',
'demo_url' => 'http://demo.thinkcmf.com',
'author_url' => 'http://www.thinkcmf.com',
];
假设有这么一个配置文件,其中首行的ThinkCMF 要么是ThinkCMF 要么就要和插件英文名一致,不然会出现安装之后会有两行的管理插件记录
2
如果需要添加后台菜单,那么类名一定是Adminindex,不然不生效,没有为什么