定制 ceeram/cakephp-blame 二次开发

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

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

ceeram/cakephp-blame

最新稳定版本:1.0.1

Composer 安装命令:

composer require ceeram/cakephp-blame

包简介

CakePHP plugin to update created_by and modified_by fields

README 文档

README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

CakePHP 3.0 plugin to update created_by and modified_by fields.

Abandoned

This package is abandoned and no longer maintained. The author suggests using the muffin/footprint package instead.

Installation

Add the following lines to your application's composer.json:

    "require": {
        "ceeram/cakephp-blame": "~1.0"
    }

followed by the command:

composer update

Or run the following command directly without changing your composer.json:

composer require ceeram/cakephp-blame:~1.0

Usage

In your app's config/bootstrap.php add: Plugin::load('Ceeram/Blame');

Configuration

Add the following line to your AppController:

    use \Ceeram\Blame\Controller\BlameTrait;

Add the following inside your AppController Class

class AppController extends Controller
{
    use BlameTrait;
}

Attach the behavior in the models you want with:

    public function initialize(array $config) {
        $this->addBehavior('Ceeram/Blame.Blame');
    }

统计信息

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

GitHub 信息

  • Stars: 25
  • Watchers: 4
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-08-21