{"action":"created","issue":{"url":"https://api.github.com/repos/creocoder/yii2-nested-sets/issues/59","labels_url":"https://api.github.com/repos/creocoder/yii2-nested-sets/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/creocoder/yii2-nested-sets/issues/59/comments","events_url":"https://api.github.com/repos/creocoder/yii2-nested-sets/issues/59/events","html_url":"https://github.com/creocoder/yii2-nested-sets/issues/59","id":56141736,"number":59,"title":"Widget","user":{"login":"nepster-web","id":5681979,"avatar_url":"https://avatars.githubusercontent.com/u/5681979?v=3","gravatar_id":"","url":"https://api.github.com/users/nepster-web","html_url":"https://github.com/nepster-web","followers_url":"https://api.github.com/users/nepster-web/followers","following_url":"https://api.github.com/users/nepster-web/following{/other_user}","gists_url":"https://api.github.com/users/nepster-web/gists{/gist_id}","starred_url":"https://api.github.com/users/nepster-web/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nepster-web/subscriptions","organizations_url":"https://api.github.com/users/nepster-web/orgs","repos_url":"https://api.github.com/users/nepster-web/repos","events_url":"https://api.github.com/users/nepster-web/events{/privacy}","received_events_url":"https://api.github.com/users/nepster-web/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/creocoder/yii2-nested-sets/labels/documentation","name":"documentation","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-31T22:13:00Z","updated_at":"2015-04-13T03:13:24Z","closed_at":null,"body":"Здравствуйте. Было бы здорово, если бы вы добавили старый пример в доки:\r\n```php\r\n$categories = Category::find()->addOrderBy('lft')->all();\r\n$level = 0;\r\n\r\nforeach ($categories as $n => $category)\r\n{\r\n    if ($category->level == $level) {\r\n        echo Html::endTag('li') . \"\\n\";\r\n    } elseif ($category->level > $level) {\r\n        echo Html::beginTag('ul') . \"\\n\";\r\n    } else {\r\n        echo Html::endTag('li') . \"\\n\";\r\n\r\n        for ($i = $level - $category->level; $i; $i--) {\r\n            echo Html::endTag('ul') . \"\\n\";\r\n            echo Html::endTag('li') . \"\\n\";\r\n        }\r\n    }\r\n\r\n    echo Html::beginTag('li');\r\n    echo Html::encode($category->title);\r\n    $level = $category->level;\r\n}\r\n\r\nfor ($i = $level; $i; $i--) {\r\n    echo Html::endTag('li') . \"\\n\";\r\n    echo Html::endTag('ul') . \"\\n\";\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/creocoder/yii2-nested-sets/issues/comments/92181420","html_url":"https://github.com/creocoder/yii2-nested-sets/issues/59#issuecomment-92181420","issue_url":"https://api.github.com/repos/creocoder/yii2-nested-sets/issues/59","id":92181420,"user":{"login":"arogachev","id":8326201,"avatar_url":"https://avatars.githubusercontent.com/u/8326201?v=3","gravatar_id":"","url":"https://api.github.com/users/arogachev","html_url":"https://github.com/arogachev","followers_url":"https://api.github.com/users/arogachev/followers","following_url":"https://api.github.com/users/arogachev/following{/other_user}","gists_url":"https://api.github.com/users/arogachev/gists{/gist_id}","starred_url":"https://api.github.com/users/arogachev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arogachev/subscriptions","organizations_url":"https://api.github.com/users/arogachev/orgs","repos_url":"https://api.github.com/users/arogachev/repos","events_url":"https://api.github.com/users/arogachev/events{/privacy}","received_events_url":"https://api.github.com/users/arogachev/received_events","type":"User","site_admin":false},"created_at":"2015-04-13T03:13:24Z","updated_at":"2015-04-13T03:13:24Z","body":"I'm also interested in this widget. Could you provide more information about its features and release date?"}}