1
0
Fork 0
mirror of https://github.com/Oreolek/yii2-nested-sets.git synced 2024-06-26 03:30:46 +03:00

Updated README.md

This commit is contained in:
Alexander Kochetov 2015-01-22 20:14:42 +03:00
parent c8f8892940
commit 121ee14ee2

View file

@ -109,6 +109,12 @@ $countries = new Menu(['name' => 'Countries']);
$countries->makeRoot();
```
The tree will look like this
```
- Countries
```
### Prepending a node as the first child of another node
To prepend a node as the first child of another node
@ -123,7 +129,6 @@ The tree will look like this
```
- Countries
- Russia
- Australia
```
### Appending a node as the last child of another node
@ -139,6 +144,7 @@ The tree will look like this
```
- Countries
- Russia
- Australia
```