helpers\BaseHtml checkbox()

checkbox() public static method Generates a checkbox input. public static string checkbox ( $name, $checked = false, $options = [] )$name string The name attribute. $checked boolean Whether the checkbox should be checked. $options array The tag options in terms of name-value pairs. See booleanInput() for details about accepted attributes. return string The generated checkbox tag

helpers\BaseHtml buttonInput()

buttonInput() public static method Generates an input button. public static string buttonInput ( $label = 'Button', $options = [] )$label string The value attribute. If it is null, the value attribute will not be generated. $options array The tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. The values will be HTML-encoded using encode(). If a value is null, the corresponding attribute will not be rendered. See renderTagAttributes(

helpers\BaseHtml button()

button() public static method Generates a button tag. public static string button ( $content = 'Button', $options = [] )$content string The content enclosed within the button tag. It will NOT be HTML-encoded. Therefore you can pass in HTML code such as an image tag. If this is is coming from end users, you should consider encode() it to prevent XSS attacks. $options array The tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. The va

helpers\BaseHtml booleanInput()

booleanInput() protected static method (available since version 2.0.9) Generates a boolean input. protected static string booleanInput ( $type, $name, $checked = false, $options = [] )$type string The input type. This can be either radio or checkbox. $name string The name attribute. $checked boolean Whether the checkbox should be checked. $options array The tag options in terms of name-value pairs. The following options are specially handled: uncheck: string, the value associated w

helpers\BaseHtml beginTag()

beginTag() public static method Generates a start tag. See also: endTag() tag() public static string beginTag ( $name, $options = [] )$name string|boolean|null The tag name. If $name is null or false, the corresponding content will be rendered without any tag. $options array The tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. The values will be HTML-encoded using encode(). If a value is null, the corresponding attribute will no

helpers\BaseHtml beginForm()

beginForm() public static method Generates a form start tag. See also endForm(). public static string beginForm ( $action = '', $method = 'post', $options = [] )$action array|string The form action URL. This parameter will be processed by yii\helpers\Url::to(). $method string The form submission method, such as "post", "get", "put", "delete" (case-insensitive). Since most browsers only support "post" and "get", if other methods are given, they will be simulated using "post", and a hi

helpers\BaseHtml addCssStyle()

addCssStyle() public static method Adds the specified CSS style to the HTML options. If the options already contain a style element, the new style will be merged with the existing one. If a CSS property exists in both the new and the old styles, the old one may be overwritten if $overwrite is true. For example, Html::addCssStyle($options, 'width: 100px; height: 200px'); See also: removeCssStyle() cssStyleFromArray() cssStyleToArray() public static void addCssStyle ( &$options, $style

helpers\BaseHtml addCssClass()

addCssClass() public static method Adds a CSS class (or several classes) to the specified options. If the CSS class is already in the options, it will not be added again. If class specification at given options is an array, and some class placed there with the named (string) key, overriding of such key will have no effect. For example: $options = ['class' => ['persistent' => 'initial']]; Html::addCssClass($options, ['persistent' => 'override']); var_dump($options['class']); // outp

helpers\BaseHtml activeTextInput()

activeTextInput() public static method Generates a text input tag for the given model attribute. This method will generate the "name" and "value" tag attributes automatically for the model attribute unless they are explicitly specified in $options. public static string activeTextInput ( $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

helpers\BaseHtml activeTextarea()

activeTextarea() public static method Generates a textarea tag for the given model attribute. The model attribute value will be used as the content in the textarea. public static string activeTextarea ( $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-value pairs. These will be rendered as the at