Generates a checkbox input.
public static checkbox ( string $name, boolean $checked = false, array $options = [] ) : string | ||
$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. |
Результат | string | the generated checkbox tag |