{"action":"closed","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/7730","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/7730/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/7730/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/7730/events","html_url":"https://github.com/yiisoft/yii2/issues/7730","id":61753556,"number":7730,"title":"allow omitting surrounding div in \\yii\\widgets\\ListView","user":{"login":"KPEMATOP","id":8394514,"avatar_url":"https://avatars.githubusercontent.com/u/8394514?v=3","gravatar_id":"","url":"https://api.github.com/users/KPEMATOP","html_url":"https://github.com/KPEMATOP","followers_url":"https://api.github.com/users/KPEMATOP/followers","following_url":"https://api.github.com/users/KPEMATOP/following{/other_user}","gists_url":"https://api.github.com/users/KPEMATOP/gists{/gist_id}","starred_url":"https://api.github.com/users/KPEMATOP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KPEMATOP/subscriptions","organizations_url":"https://api.github.com/users/KPEMATOP/orgs","repos_url":"https://api.github.com/users/KPEMATOP/repos","events_url":"https://api.github.com/users/KPEMATOP/events{/privacy}","received_events_url":"https://api.github.com/users/KPEMATOP/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/type:enhancement","name":"type:enhancement","color":"d7e102"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/9","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.x","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/9/labels","id":831720,"number":9,"title":"2.0.x","description":"","creator":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"open_issues":385,"closed_issues":2,"state":"open","created_at":"2014-10-19T13:49:45Z","updated_at":"2016-02-16T08:27:10Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-03-15T05:05:53Z","updated_at":"2016-02-16T08:27:10Z","closed_at":"2016-02-16T08:27:10Z","body":"If you attempt to disable the output of the surrounding block by setting the properties of 'options' => ['tag' => false], to receive  \\<id = \"w0\"\\> (here is my html) </>, problem was solved by redefining the method yii \\ widgets \\ BaseListView\r\n/ **\r\n     * Runs the widget.\r\n     * /\r\n    public function run ()\r\n    {\r\n        if ($ this-> showOnEmpty || $ this-> dataProvider-> getCount ()> 0) {\r\n            $ Content = preg_replace_callback (\"/ {\\\\ w +} /\", function ($ matches) {\r\n                $ Content = $ this-> renderSection ($ matches [0]);\r\n\r\n                return $ content === false? $ Matches [0]: $ content;\r\n            }, $ This-> layout);\r\n        } Else {\r\n            $ Content = $ this-> renderEmpty ();\r\n        }\r\n        $ Tag = ArrayHelper :: remove ($ this-> options, 'tag', 'div');\r\n        echo Html :: tag ($ tag, $ content, $ this-> options); // here wrote a check value tag if false, it is required to return the content\r\n    }"}}