contaoblackforest/contao-easy-extend 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

contaoblackforest/contao-easy-extend

最新稳定版本:1.3.0

Composer 安装命令:

composer require contaoblackforest/contao-easy-extend

包简介

The is project to easy extends Contao modules

README 文档

README

This module helps developer´s extend contao modules. The magic of this module is, you can extend modules with dependencies of another module this extend the same.

System requirements

  • Web server
  • PHP 5.3.2+ with GDlib, DOM, Phar and SOAP
  • MySQL 5.0.3+
  • contao-core >=3.2-dev,<4-dev
  • contao-community-alliance/composer-plugin ~2.0
  • symfony/filesystem ~2.0

Installation

Easy to install via Composer-Package-Management in Contao-CMS.

    require contaoblackforest/contao-easy-extend

Usage

The Usage ist very easy. You must do one in config.php in your module.

    $GLOBALS['TL_EXTEND']['ExtendModule'][] = array(
        'namespace' => 'YourNamespace',
        'path'      => 'system/modules/your-module/module/ExtendModule.php'
    );

You replace twice "ExtendModule" with the name of the module you like to extend. By the property namespace you must your namespace you like to use.

    Attention: When you using the autoload-creator
    ----------------------------------------------
    
    After compile the autoload.php you unset the class file and there namespace.
    The autoload functionality comes from this module!!!

This module compile to files automated.

  1. The first file ist the magic of this module. This file is an bridge class of the last extended there you extend. After compiling you find this file in TL_ROOT/system/cache/bridges/YourNamespabe.

    Content of this file:

       <?php
       
       namespace YourNamespaceYourModuleBridge
       
       class ExtendModule extends \LastExtend\ExtendModule
       {
       }

    You must extend this class in your module. After extend this you have all extended modules in your module. In this file you don't work!!!

  2. The second file how comes. This will generate in your module directory. This helps you extend an module. When you have this file create before you using this module, the file don't will create. When you like allow create this file, you must rename your file.

    Content of this file:

       <?php
       
       namespace YourNamespaceYourModule
       
       class ExtendModule extends \YourNamespaceYourModuleBridge\ExtendModule
       {
       }

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2015-06-21