Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
vryabov1 committed Feb 16, 2016
1 parent d55070a commit bc6d220
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Model updates history stored in DB
==================================
Save model updates history to db
Extension is automatically saves all ActiveRecords inserts, updates and deletes at table `{{%models_history}}`

Installation
------------
Expand All @@ -21,11 +21,15 @@ or add

to the require section of your `composer.json` file.

Then apply migration:

```
php yii migrate --migrationPath="@vendor/qvalent/yii2-models-history/migrations"
```

Usage
-----

Once the extension is installed, simply use it in your code by :
No other steps required. Extension is working now, you can test it by update some project ActiveRecord and see updates in `{{%models_history}}`.

```php
<?= \qvalent\AutoloadExample::widget(); ?>```
Feel free to create issues if something is wrong.

0 comments on commit bc6d220

Please sign in to comment.