Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yii\bootstrap\Html helper added #34

Merged
merged 6 commits into from
May 19, 2015
Merged

Conversation

klimov-paul
Copy link
Member

Fixes #42 and #43.

yii\bootstrap\Html helper added.

This was referenced Apr 23, 2015
@samdark
Copy link
Member

samdark commented Apr 23, 2015

Nice idea.

@klimov-paul
Copy link
Member Author

PR updated.
@yiisoft/core-developers please provide your feedback.

* @inheritdoc
* @return ActiveField the created ActiveField object
*/
public function field($model, $attribute, $options = [])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it safe to remove it? It does nothing other than calling parent implementation.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is added for IDE type-hint support.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be done via @method annotation w/o actual implementation.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK.

@samdark
Copy link
Member

samdark commented May 18, 2015

Overall, it looks fine.

* Renders Bootstrap static form control.
* @param array $options the tag options in terms of name-value pairs. These will be rendered as
* the attributes of the resulting tag. There are also a special options:
* - encode: boolean, whether value should be HTML-encoded or not.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a newline is required before this list, otherwise it would not render properly.

@cebe
Copy link
Member

cebe commented May 18, 2015

except the phpdoc formatting which needs to be adjusted for all methods in BaseHtml too, it looks fine to me.

@klimov-paul klimov-paul added this to the 2.0.5 milestone May 19, 2015
@klimov-paul klimov-paul self-assigned this May 19, 2015
@klimov-paul klimov-paul added the type:enhancement Enhancement label May 19, 2015
klimov-paul added a commit that referenced this pull request May 19, 2015
`yii\bootstrap\Html` helper added
@klimov-paul klimov-paul merged commit 5f1b8ab into yiisoft:master May 19, 2015
@klimov-paul klimov-paul deleted the html-helper branch February 5, 2018 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Icons support
3 participants