Giter Site home page Giter Site logo

think-addon's Introduction

think-addon

thinkphp6 addon support

半成品请勿使用

安装

composer require isszz/think-addon -vvv

接下来将字体放入tp根目录下的config/font目录

配置

<?php

// addon配置
return [
    // 不允许作为扩展的关键词
    'sysList' => ['install', 'admin', 'adm', 'index', 'common', 'store', 'user', 'api', 'article', 'pay', 'public', 'app'],
];

使用方法

在系统根目录创建addon目录

快速生成扩展

php think addon demo

返回Successed则说明成功

生成后我们就可以访问demo扩展

├─addon 扩展目录
│  ├─index              主应用相关
│  │  ├─controller      控制器目录
│  │  ├─model           模型目录
│  │  ├─view            视图目录
│  │  └─ ...            更多类库目录
│  │ 
│  ├─admin              后台应用相关
│  │  ├─controller      控制器目录
│  │  ├─model           模型目录
│  │  ├─view            视图目录
│  │  └─ ...            更多类库目录

访问扩展说明

默认访问扩展时优先查找: 应用 -> 控制器 -> 方法

think-addon's People

Contributors

isszz avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.