{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/9690","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/9690/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/9690/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/9690/events","html_url":"https://github.com/yiisoft/yii2/issues/9690","id":106544859,"number":9690,"title":"FR: I wish View::render() can be used like require()","user":{"login":"mdmunir","id":5828252,"avatar_url":"https://avatars.githubusercontent.com/u/5828252?v=3","gravatar_id":"","url":"https://api.github.com/users/mdmunir","html_url":"https://github.com/mdmunir","followers_url":"https://api.github.com/users/mdmunir/followers","following_url":"https://api.github.com/users/mdmunir/following{/other_user}","gists_url":"https://api.github.com/users/mdmunir/gists{/gist_id}","starred_url":"https://api.github.com/users/mdmunir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdmunir/subscriptions","organizations_url":"https://api.github.com/users/mdmunir/orgs","repos_url":"https://api.github.com/users/mdmunir/repos","events_url":"https://api.github.com/users/mdmunir/events{/privacy}","received_events_url":"https://api.github.com/users/mdmunir/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-15T12:28:42Z","updated_at":"2015-09-23T16:33:52Z","closed_at":"2015-09-15T12:46:07Z","body":"I mean, it can be used to render file with content like\r\n```php\r\n// view file\r\nreturn [\r\n   'items' => 'somethings',\r\n   \r\n];\r\n```"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/142655947","html_url":"https://github.com/yiisoft/yii2/issues/9690#issuecomment-142655947","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/9690","id":142655947,"user":{"login":"fernandezekiel","id":2260169,"avatar_url":"https://avatars.githubusercontent.com/u/2260169?v=3","gravatar_id":"","url":"https://api.github.com/users/fernandezekiel","html_url":"https://github.com/fernandezekiel","followers_url":"https://api.github.com/users/fernandezekiel/followers","following_url":"https://api.github.com/users/fernandezekiel/following{/other_user}","gists_url":"https://api.github.com/users/fernandezekiel/gists{/gist_id}","starred_url":"https://api.github.com/users/fernandezekiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fernandezekiel/subscriptions","organizations_url":"https://api.github.com/users/fernandezekiel/orgs","repos_url":"https://api.github.com/users/fernandezekiel/repos","events_url":"https://api.github.com/users/fernandezekiel/events{/privacy}","received_events_url":"https://api.github.com/users/fernandezekiel/received_events","type":"User","site_admin":false},"created_at":"2015-09-23T16:33:52Z","updated_at":"2015-09-23T16:33:52Z","body":"it sounds like what you want/need is something like an Output object being returned and just has a Output::__toString() implementation instead of an array"}}