Skip to content

Commit

Permalink
Readme instruction fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
itstructure committed Jul 17, 2020
1 parent 6397ffb commit 74f1f54
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 27 deletions.
Binary file added ML_menu_en.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 17 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ The widget uses data from the **database**, in which there are, in addition to t

Data from the **database** is taken from an active model, which instance of **yii\db\ActiveRecord**.

## Dependencies
![Multi level menu example scheme](https://github.com/itstructure/yii2-multi-level-menu/blob/master/ML_menu_en.jpg)

## Requirements

- php >= 7.1
- composer
Expand All @@ -25,19 +27,7 @@ Data from the **database** is taken from an active model, which instance of **yi

Via composer:

`composer require itstructure/yii2-multi-level-menu ~3.2.5`

or in section **require** of composer.json file set the following:

```json
"require": {
"itstructure/yii2-multi-level-menu": "~3.2.5"
}
```

and command `composer install`, if you install yii2 project extensions first,

or command `composer update`, if all yii2 project extensions are already installed.
`composer require itstructure/yii2-multi-level-menu ~3.2.6`

## Usage

Expand Down Expand Up @@ -138,19 +128,19 @@ echo MenuWidget::widget([

`Table "pages"`

| id | parentId | title | ... |
|-----|----------|-------|-----|
| 1 | NULL | page1 | ... |
| 2 | NULL | page2 | ... |
| 3 | 1 | page3 | ... |
| 4 | 1 | page4 | ... |
| 5 | 4 | page5 | ... |
| 6 | 4 | page6 | ... |
| 7 | 3 | page7 | ... |
| 8 | 3 | page8 | ... |
| 9 | NULL | page9 | ... |
| 10 | NULL | page10| ... |
| ... | ... | ... | ... |
| id | parentId | title | ... |
|-----|----------|------------|-----|
| 1 | NULL | item 1 | ... |
| 2 | NULL | item 2 | ... |
| 3 | NULL | item 3 | ... |
| 4 | NULL | item 4 | ... |
| 5 | NULL | item 5 | ... |
| 6 | 2 | item 2.1 | ... |
| 7 | 2 | item 2.2 | ... |
| 8 | 7 | item 2.2.1 | ... |
| 9 | 7 | item 2.2.2 | ... |
| 10 | 7 | item 2.2.3 | ... |
| ... | ... | ... | ... |

## License

Expand Down
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
### CHANGE LOG:

**3.2.6 July 17, 2020:**
- Readme instruction fixes.

**3.2.5 June 23, 2020:**
- Modify README syntax.

Expand Down

0 comments on commit 74f1f54

Please sign in to comment.