Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
forecho committed Jan 26, 2018
1 parent c1e9cdb commit ebfbb09
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,26 @@ $ php yii migrate --migrationPath=@yiier/actionStore/migrations/
Usage
-----

Once the extension is installed, simply use it in your code by :
OConfigure Controller class as follows : :

```php
<?= \yiier\actionStore\AutoloadExample::widget(); ?>```
use yiier\actionStore\actions\ActionAction;

class TopicController extends Controller
{
public function actions()
{
return [
'do' => [
'class' => ActionAction::className(),
]
];
}
}
```

Url

```html
http://xxxxxxxxxxxxxx/topic/do?type=clap&model=topic&model_id=1
```

0 comments on commit ebfbb09

Please sign in to comment.