Class yii\bootstrap4\Html

Inheritanceyii\bootstrap4\Html » yii\bootstrap4\BaseHtml » yii\helpers\Html

Html is an enhanced version of \yii\helpers\Html helper class dedicated to the Bootstrap needs.

This class inherits all functionality available at \yii\helpers\Html and can be used as substitute.

Attention: do not confuse yii\bootstrap4\Html and \yii\helpers\Html, be careful in which class you are using inside your views.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$autoIdPrefix string The prefix to the automatically generated widget IDs. yii\bootstrap4\BaseHtml
$counter integer A counter used to generate id for widgets. yii\bootstrap4\BaseHtml
$dataAttributes array List of tag attributes that should be specially handled when their values are of array type. yii\bootstrap4\BaseHtml

Public Methods

Hide inherited methods

MethodDescriptionDefined By
activeStaticControl() Generates a Bootstrap static form control for the given model attribute. yii\bootstrap4\BaseHtml
checkboxList() yii\bootstrap4\BaseHtml
error() yii\bootstrap4\BaseHtml
radioList() yii\bootstrap4\BaseHtml
staticControl() Renders Bootstrap static form control. yii\bootstrap4\BaseHtml

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
booleanInput() yii\bootstrap4\BaseHtml
getId() Returns an autogenerated ID yii\bootstrap4\BaseHtml