Skip to content
This repository has been archived by the owner on Nov 23, 2018. It is now read-only.

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Lucas committed Jun 14, 2018
1 parent 5856357 commit 9e69536
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ The preferred way to install this module is through [composer](http://getcompose
Either run

```
composer require "iutbay/yii2-mm" "*"
composer require "mlcsthor/yii2-media-manager" "*"
```

or add

```json
"iutbay/yii2-mm" : "*"
"mlcsthor/yii2-media-manager" : "*"
```

to the require section of your application's `composer.json` file.
Expand Down Expand Up @@ -50,7 +50,7 @@ Add the following lines in your application configuration :
'modules' => [
// ...
'mm' => [
'class' => 'iutbay\yii2\mm\Module',
'class' => 'mlcsthor\mediamanager\Module',
],
],
```
Expand All @@ -72,7 +72,7 @@ This module use [Imagine](https://github.com/avalanche123/Imagine) (via [yii2-im
### MediaManagerInput

```php
use iutbay\yii2\mm\widgets\MediaManagerInput;
use mlcsthor\mediamanager\widgets\MediaManagerInput;

echo MediaManagerInput::widget([
'name' => 'test', // input name
Expand All @@ -82,6 +82,7 @@ echo MediaManagerInput::widget([
'listUrl' => Url::to(['/mm/api/list']),
// 'uploadUrl' => Url::to(['/mm/api/upload']),
// 'downloadUrl' => Url::to(['/mm/api/download']),
// 'deleteUrl' => Url::to(['/mm/api/delete'])
],
],
]);
Expand All @@ -90,7 +91,7 @@ echo MediaManagerInput::widget([
### MediaManagerModal

```php
use iutbay\yii2\mm\widgets\MediaManagerInputModal;
use mlcsthor\mediamanager\widgets\MediaManagerInputModal;

echo MediaManagerInputModal::widget([
'name' => 'test', // input name
Expand All @@ -99,6 +100,7 @@ echo MediaManagerInputModal::widget([
'listUrl' => Url::to(['/mm/api/list']),
// 'uploadUrl' => Url::to(['/mm/api/upload']),
// 'downloadUrl' => Url::to(['/mm/api/download']),
// 'deleteUrl' => Url::to(['/mm/api/delete'])
],
],
]);
Expand Down

0 comments on commit 9e69536

Please sign in to comment.