定制 startpl/t2cms-module 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

startpl/t2cms-module

Composer 安装命令:

composer require startpl/t2cms-module

包简介

The module example for t2cms

README 文档

README

You can use this module as template

Module development features

File structure:

my-module
├─ backend
|  ├── Module.php
|  └── config
|      └── main.php 
├── frontend
|   ├── Module.php
|   └── config
|       └── main.php 
├── common
|   ├── Module.php
|   └── config
|       └── main.php 
├── module_info.php
└── ModuleInstall.php

Each part of your module (backend/frontend/common) is a regular yii2 module.

All parts are optional, you can only implement a backend or frontend, or only a common.

if you use composer:

  • Your composer.json must contain type: "t2cms-module"

File Descriptions

module_info.php

<?php
return [
    'url'         => 'example-module', // module url
    'namespace'   => 'startpl\\t2cms\\moduleExample',
    'name'        => 'example module',
    'description' => 'The module example',
    'version'     => '1.0.0',
    'fa_icon'     => 'envelope', // fontawesome
    'author'      => 'Your Name'
];
name Description
'url' => 'example-module' Module url (frontend - /example-module, backend - /admin/module/example-module)
'namespace' => 'startpl\\t2cms\\exampleModule' Module namespace

ModuleInstall.php

ModuleInstall class must implement [t2cms\module\interfaces\IModuleInstall] interface

and must contain follow methods:

  • install(): bool
  • uninstall(): bool
  • activate(): bool
  • deactivate(): bool
  • update(): bool

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2020-04-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固