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

doc_Yii
2016-10-30 17:05:00
Comments
Leave a Comment

Please login to continue.