{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/7169","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/7169/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/7169/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/7169/events","html_url":"https://github.com/yiisoft/yii2/pull/7169","id":56589748,"number":7169,"title":"use the ActiveField public methods for the default rendering","user":{"login":"Faryshta","id":2029247,"avatar_url":"https://avatars.githubusercontent.com/u/2029247?v=3","gravatar_id":"","url":"https://api.github.com/users/Faryshta","html_url":"https://github.com/Faryshta","followers_url":"https://api.github.com/users/Faryshta/followers","following_url":"https://api.github.com/users/Faryshta/following{/other_user}","gists_url":"https://api.github.com/users/Faryshta/gists{/gist_id}","starred_url":"https://api.github.com/users/Faryshta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Faryshta/subscriptions","organizations_url":"https://api.github.com/users/Faryshta/orgs","repos_url":"https://api.github.com/users/Faryshta/repos","events_url":"https://api.github.com/users/Faryshta/events{/privacy}","received_events_url":"https://api.github.com/users/Faryshta/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/13","html_url":"https://github.com/yiisoft/yii2/milestones/2.0.5","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/13/labels","id":1000704,"number":13,"title":"2.0.5","description":"","creator":{"login":"qiangxue","id":993322,"avatar_url":"https://avatars.githubusercontent.com/u/993322?v=3","gravatar_id":"","url":"https://api.github.com/users/qiangxue","html_url":"https://github.com/qiangxue","followers_url":"https://api.github.com/users/qiangxue/followers","following_url":"https://api.github.com/users/qiangxue/following{/other_user}","gists_url":"https://api.github.com/users/qiangxue/gists{/gist_id}","starred_url":"https://api.github.com/users/qiangxue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiangxue/subscriptions","organizations_url":"https://api.github.com/users/qiangxue/orgs","repos_url":"https://api.github.com/users/qiangxue/repos","events_url":"https://api.github.com/users/qiangxue/events{/privacy}","received_events_url":"https://api.github.com/users/qiangxue/received_events","type":"User","site_admin":false},"open_issues":52,"closed_issues":23,"state":"open","created_at":"2015-03-01T16:03:07Z","updated_at":"2015-05-20T16:42:44Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-02-04T21:24:42Z","updated_at":"2015-05-20T18:27:01Z","closed_at":"2015-05-20T09:36:16Z","pull_request":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/7169","html_url":"https://github.com/yiisoft/yii2/pull/7169","diff_url":"https://github.com/yiisoft/yii2/pull/7169.diff","patch_url":"https://github.com/yiisoft/yii2/pull/7169.patch"},"body":"This is useful in case someone extends the `yii\\widgets\\ActiveField` class to modify the behavior of the methods `label()`, `error()` or `textInput()` one need to also edit the `render()`\r\n\r\nFor example the current code produce this behavior\r\n\r\n```php\r\n$form = ActiveForm::begin(['fieldClass' => MyActiveField::className()]);\r\n\r\necho $form->field($model, 'attribute');\r\n// renders the inputs, labels and error the same as ActiveField\r\n\r\necho $form->field($model, 'attribute')->textInput()->label()->error();\r\n// renders the extended methods defined in MyActiveField\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/103986766","html_url":"https://github.com/yiisoft/yii2/pull/7169#issuecomment-103986766","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/7169","id":103986766,"user":{"login":"Faryshta","id":2029247,"avatar_url":"https://avatars.githubusercontent.com/u/2029247?v=3","gravatar_id":"","url":"https://api.github.com/users/Faryshta","html_url":"https://github.com/Faryshta","followers_url":"https://api.github.com/users/Faryshta/followers","following_url":"https://api.github.com/users/Faryshta/following{/other_user}","gists_url":"https://api.github.com/users/Faryshta/gists{/gist_id}","starred_url":"https://api.github.com/users/Faryshta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Faryshta/subscriptions","organizations_url":"https://api.github.com/users/Faryshta/orgs","repos_url":"https://api.github.com/users/Faryshta/repos","events_url":"https://api.github.com/users/Faryshta/events{/privacy}","received_events_url":"https://api.github.com/users/Faryshta/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T18:27:01Z","updated_at":"2015-05-20T18:27:01Z","body":"Thanks."}}