PHP code example of cma / tp6-addons

1. Go to this page and download the library: Download cma/tp6-addons library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

cma / tp6-addons example snippets

html
www  WEB部署目录(或者子目录)
├─addons           插件目录
│  ├─controller    控制器目录
│  │  ├─admin      后台控制器目录
│  │  ├─api        API控制器目录
│  │  ├─index      前台控制器目录
│  ├─model         模型目录
│  ├─view          应用前端模板文件
│  ├─ ...          更多类库目录
│  │
│  ├─common.php    公共函数文件
│  ├─config.php    应用介绍配置文件
│  ├─menus.php     应用菜单配置文件
│  ├─Init.php      应用入口文件
│  ├─install.sql   应用安装SQL文件
│  ├─uninstall.sql 应用卸载SQL文件
│  └─event.php     微信回调事件文件