2017 © Pedro Peláez
 

cakephp-plugin historic

Historic Behavior for CakePHP

image

oxenti/historic

Historic Behavior for CakePHP

  • Friday, October 30, 2015
  • by oxenti
  • Repository
  • 4 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Historic Behavior for cakephp

This add Behavior de historic for table, (*1)

Requirements

  • CakePHP 3.0+

Installation

You can install this behavior into your CakePHP application using composer., (*2)

The recommended way to install composer packages is:, (*3)

composer require oxenti/historic

Configuration

In your app's config/bootstrap.php add:, (*4)

// In config/bootstrap.php
Plugin::load('Historic');

or using cake's console:, (*5)

./bin/cake plugin load Historic

On your app's,model add the Histotic Behevior in initialize method:, (*6)

    ...
     $this->addBehavior('Historic.Historic'[
        'class' => 'Historic`s table'
        'fields' => ['fields']//fields that should be saved on historic table
    ]);
    ...

Configuration files [optional]

Move the 'address.php' config file from the plugin's config folder to your app's config folder., (*7)

On your app's 'bootstrap.php' add the address configuration file:, (*8)

    ...
    try {
        Configure::config('default', new PhpConfig());
        Configure::load('app', 'default', false);
    } catch (\Exception $e) {
        die($e->getMessage() . "\n");
    }

    Configure::load('historic', 'default');
    ...

Warning

Historic's table require field is_active tyniInt(1)., (*9)

The Versions

30/10 2015

dev-master

9999999-dev

Historic Behavior for CakePHP

  Sources   Download

The Requires

 

The Development Requires