美文网首页
thinkcmf插件开发踩坑记录

thinkcmf插件开发踩坑记录

作者: 水电梁师傅 | 来源:发表于2019-06-11 09:59 被阅读0次

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,不然不生效,没有为什么

相关文章

网友评论

      本文标题:thinkcmf插件开发踩坑记录

      本文链接:https://www.haomeiwen.com/subject/wolffctx.html