checkbox() public method
Renders a checkbox. This method will generate the checked tag attribute according to the model attribute value.
public $this checkbox ( $options = [], $enclosedByLabel = true )$options array
The tag options in terms of name-value pairs. The following options are specially handled:
uncheck: string, the value associated with the uncheck state of the radio button. If not set, it will take the default value 0. This method will render a hidden input so that if the ra