helpers\BaseHtml endTag()

endTag() public static method Generates an end tag. See also: beginTag() tag() public static string endTag ( $name )$name string|boolean|null The tag name. If $name is null or false, the corresponding content will be rendered without any tag. return string The generated end tag

helpers\BaseHtml endForm()

endForm() public static method Generates a form end tag. See also beginForm(). public static string endForm ( )return string The generated tag

helpers\BaseHtml encode()

encode() public static method Encodes special characters into HTML entities. The application charset will be used for encoding. See also: decode() http://www.php.net/manual/en/function.htmlspecialchars.php public static string encode ( $content, $doubleEncode = true )$content string The content to be encoded $doubleEncode boolean Whether to encode HTML entities in $content. If false, HTML entities in $content will not be further encoded. return string The encoded content

helpers\BaseHtml dropDownList()

dropDownList() public static method Generates a drop-down list. public static string dropDownList ( $name, $selection = null, $items = [], $options = [] )$name string The input name $selection string|array|null The selected value(s). String for single or array for multiple selection(s). $items array The option data items. The array keys are option values, and the array values are the corresponding option labels. The array can also be nested (i.e. some array values are arrays too).

helpers\BaseHtml decode()

decode() public static method Decodes special HTML entities back to the corresponding characters. This is the opposite of encode(). See also: encode() http://www.php.net/manual/en/function.htmlspecialchars-decode.php public static string decode ( $content )$content string The content to be decoded return string The decoded content

helpers\BaseHtml cssStyleToArray()

cssStyleToArray() public static method Converts a CSS style string into an array representation. The array keys are the CSS property names, and the array values are the corresponding CSS property values. For example, print_r(Html::cssStyleToArray('width: 100px; height: 200px;')); // will display: ['width' => '100px', 'height' => '200px'] public static array cssStyleToArray ( $style )$style string The CSS style string return array The array representation of the CSS style

helpers\BaseHtml cssStyleFromArray()

cssStyleFromArray() public static method Converts a CSS style array into a string representation. For example, print_r(Html::cssStyleFromArray(['width' => '100px', 'height' => '200px'])); // will display: 'width: 100px; height: 200px;' public static string cssStyleFromArray ( array $style )$style array The CSS style array. The array keys are the CSS property names, and the array values are the corresponding CSS property values. return string The CSS style string. If the CSS styl

helpers\BaseHtml cssFile()

cssFile() public static method Generates a link tag that refers to an external CSS file. See also yii\helpers\Url::to(). public static string cssFile ( $url, $options = [] )$url array|string The URL of the external CSS file. This parameter will be processed by yii\helpers\Url::to(). $options array The tag options in terms of name-value pairs. The following option is specially handled: condition: specifies the conditional comments for IE, e.g., lt IE 9. When this is specified, the gen

helpers\BaseHtml csrfMetaTags()

csrfMetaTags() public static method Generates the meta tags containing CSRF token information. See also yii\web\Request::$enableCsrfValidation. public static string csrfMetaTags ( )return string The generated meta tags

helpers\BaseHtml checkboxList()

checkboxList() 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. public static string checkboxList ( $name, $selection = null, $items = [], $options = [] )$name string The name attribute of each checkbox. $selection string|array|null The selected value(s). String for single or array for multiple selection(s). $items array The data item used to generate the check