widgets\ActiveField label()

label() public method Generates a label tag for $attribute. public $this label ( $label = null, $options = [] )$label null|string|false The label to use. If null, the label will be generated via yii\base\Model::getAttributeLabel(). If false, the generated field will not contain the label part. Note that this will NOT be encoded. $options null|array The tag options in terms of name-value pairs. It will be merged with $labelOptions. The options will be rendered as the attributes of t

widgets\ActiveField input()

input() public method Renders an input tag. public $this input ( $type, $options = [] )$type string The input type (e.g. text, password) $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 yii\helpers\Html::encode(). If you set a custom id for the input element, you may need to adjust the $selectors accordingly. return $this The field object itself.

widgets\ActiveField hint()

hint() public method Renders the hint tag. public $this hint ( $content, $options = [] )$content string|boolean The hint content. If null, the hint will be generated via yii\base\Model::getAttributeHint(). If false, the generated field will not contain the hint part. Note that this will NOT be encoded. $options array The tag options in terms of name-value pairs. These will be rendered as the attributes of the hint tag. The values will be HTML-encoded using yii\helpers\Html::encode().

widgets\ActiveField hiddenInput()

hiddenInput() public method Renders a hidden input. Note that this method is provided for completeness. In most cases because you do not need to validate a hidden input, you should not need to use this method. Instead, you should use yii\helpers\Html::activeHiddenInput(). This method will generate the name and value tag attributes automatically for the model attribute unless they are explicitly specified in $options. public $this hiddenInput ( $options = [] )$options array The tag option

widgets\ActiveField getInputId()

getInputId() protected method (available since version 2.0.7) Returns the HTML id of the input element of this form field. protected string getInputId ( )return string The input id.

widgets\ActiveField getClientOptions()

getClientOptions() protected method Returns the JS options for the field. protected array getClientOptions ( )return array The JS options.

widgets\ActiveField fileInput()

fileInput() public method Renders a file input. This method will generate the name and value tag attributes automatically for the model attribute unless they are explicitly specified in $options. public $this fileInput ( $options = [] )$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 yii\helpers\Html::encode(). If you set a custom id for the input element, you may need to adju

widgets\ActiveField error()

error() public method Generates a tag that contains the first validation error of $attribute. Note that even if there is no validation error, this method will still return an empty error tag. See also $errorOptions. public $this error ( $options = [] )$options array|false The tag options in terms of name-value pairs. It will be merged with $errorOptions. The options will be rendered as the attributes of the resulting tag. The values will be HTML-encoded using yii\helpers\Html::encode()

widgets\ActiveField end()

end() public method Renders the closing tag of the field container. public string end ( )return string The rendering result.

widgets\ActiveField dropDownList()

dropDownList() public method Renders a drop-down list. The selection of the drop-down list is taken from the value of the model attribute. public $this dropDownList ( $items, $options = [] )$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). For each sub-array, an option group will be generated whose label is the key associated with the sub-arr