helpers\BaseHtml activeDropDownList()

activeDropDownList() public static method Generates a drop-down list for the given model attribute. The selection of the drop-down list is taken from the value of the model attribute. public static string activeDropDownList ( $model, $attribute, $items, $options = [] )$model yii\base\Model The model object $attribute string The attribute name or expression. See getAttributeName() for the format about attribute expression. $items array The option data items. The array keys are option

helpers\BaseHtml activeCheckboxList()

activeCheckboxList() public static method Generates a list of checkboxes. A checkbox list allows multiple selection, like listBox(). As a result, the corresponding submitted value is an array. The selection of the checkbox list is taken from the value of the model attribute. public static string activeCheckboxList ( $model, $attribute, $items, $options = [] )$model yii\base\Model The model object $attribute string The attribute name or expression. See getAttributeName() for the format

helpers\BaseHtml activeCheckbox()

activeCheckbox() public static method Generates a checkbox tag together with a label for the given model attribute. This method will generate the "checked" tag attribute according to the model attribute value. public static string activeCheckbox ( $model, $attribute, $options = [] )$model yii\base\Model The model object $attribute string The attribute name or expression. See getAttributeName() for the format about attribute expression. $options array The tag options in terms of name-

helpers\BaseHtml activeBooleanInput()

activeBooleanInput() protected static method (available since version 2.0.9) Generates a boolean input This method is mainly called by activeCheckbox() and activeRadio(). protected static string activeBooleanInput ( $type, $model, $attribute, $options = [] )$type string The input type. This can be either radio or checkbox. $model yii\base\Model The model object $attribute string The attribute name or expression. See getAttributeName() for the format about attribute expression. $opti

helpers\BaseHtml a()

a() public static method Generates a hyperlink tag. See also yii\helpers\Url::to(). public static string a ( $text, $url = null, $options = [] )$text string Link body. It will NOT be HTML-encoded. Therefore you can pass in HTML code such as an image tag. If this is coming from end users, you should consider encode() it to prevent XSS attacks. $url array|string|null The URL for the hyperlink tag. This parameter will be processed by yii\helpers\Url::to() and will be used for the "href"

helpers\BaseHtml $voidElements

$voidElements public static property List of void elements (element name => 1) See also http://www.w3.org/TR/html-markup/syntax.html#void-element. public static array $voidElements = ['area' => 1, 'base' => 1, 'br' => 1, 'col' => 1, 'command' => 1, 'embed' => 1, 'hr' => 1, 'img' => 1, 'input' => 1, 'keygen' => 1, 'link' => 1, 'meta' => 1, 'param' => 1, 'source' => 1, 'track' => 1, 'wbr' => 1]

helpers\BaseHtml $dataAttributes

$dataAttributes public static property (available since version 2.0.3) List of tag attributes that should be specially handled when their values are of array type. In particular, if the value of the data attribute is ['name' => 'xyz', 'age' => 13], two attributes will be generated instead of one: data-name="xyz" data-age="13". public static array $dataAttributes = ['data', 'data-ng', 'ng']

helpers\BaseHtml $attributeOrder

$attributeOrder public static property The preferred order of attributes in a tag. This mainly affects the order of the attributes that are rendered by renderTagAttributes(). public static array $attributeOrder = ['type', 'id', 'class', 'name', 'value', 'href', 'src', 'action', 'method', 'selected', 'checked', 'readonly', 'disabled', 'multiple', 'size', 'maxlength', 'width', 'height', 'rows', 'cols', 'alt', 'title', 'rel', 'media']

helpers\BaseFormatConverter convertDatePhpToJui()

convertDatePhpToJui() public static method Converts a date format pattern from [php date() function format][] to [jQuery UI date format][]. The conversion is limited to date patterns that do not use escaped characters. Patterns like jS \o\f F Y which will result in a date like 1st of December 2014 may not be converted correctly because of the use of escaped characters. Pattern constructs that are not supported by the jQuery UI format will be removed. public static string convertDatePhpToJ

helpers\BaseFormatConverter convertDatePhpToIcu()

convertDatePhpToIcu() public static method Converts a date format pattern from [php date() function format][] to [ICU format][]. The conversion is limited to date patterns that do not use escaped characters. Patterns like jS \o\f F Y which will result in a date like 1st of December 2014 may not be converted correctly because of the use of escaped characters. Pattern constructs that are not supported by the ICU format will be removed. public static string convertDatePhpToIcu ( $pattern )$p