ignatenkovnikita / yii2-activerecord-history-widget
ActiveRecord History Widget
Installs: 7 536
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 2
Open Issues: 0
Type:yii2-extension
Requires
- nhkey/yii2-activerecord-history: *
- yiisoft/yii2: ~2.0.0
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