ignatenkovnikita/yii2-activerecord-history-widget

ActiveRecord History Widget

v1.1 2022-11-29 08:30 UTC

This package is auto-updated.

Last update: 2024-11-29 05:21:12 UTC


README

ActiveRecord History Widget

This widget use extension nhkey/yii2-activerecord-history

Installation

The preferred way to install this extension is through composer.

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

Usage

Once the extension is installed, simply use it in your code by :

<?= \ignatenkovnikita\arh\ActiveRecordHistoryWidget::widget(['model' => $model]); ?>

And model must implement interface ModelHistoryInterface