https://github.com/ignatenkovnikita/yii2-activerecord-history-widget
AR History Widget
https://github.com/ignatenkovnikita/yii2-activerecord-history-widget
Last synced: about 2 months ago
JSON representation
AR History Widget
- Host: GitHub
- URL: https://github.com/ignatenkovnikita/yii2-activerecord-history-widget
- Owner: ignatenkovnikita
- Created: 2018-08-03T14:46:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-29T08:30:39.000Z (over 2 years ago)
- Last Synced: 2025-03-27T13:12:02.382Z (2 months ago)
- Language: PHP
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ActiveRecord History Widget
===========================
ActiveRecord History WidgetThis widget use extension [nhkey/yii2-activerecord-history](https://github.com/nhkey/yii2-activerecord-history)
Installation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist ignatenkovnikita/yii2-activerecord-history-widget:dev-master
```or add
```
"ignatenkovnikita/yii2-activerecord-history-widget": "dev-master"
```to the require section of your `composer.json` file.
Add behavior in model [instructions](https://github.com/nhkey/yii2-activerecord-history/blob/master/docs/en/usage-as-behavior.md)
Usage
-----Once the extension is installed, simply use it in your code by :
```php
= \ignatenkovnikita\arh\ActiveRecordHistoryWidget::widget(['model' => $model]); ?>
```And model must implement interface ModelHistoryInterface