widgets\ActiveForm init()

init() public method Initializes the widget. This renders the form open tag. public void init ( )

widgets\ActiveForm getClientOptions()

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

widgets\ActiveForm field()

field() public method Generates a form field. A form field is associated with a model and an attribute. It contains a label, an input and an error message and use them to interact with end users to collect their inputs for the attribute. See also $fieldConfig. public yii\widgets\ActiveField field ( $model, $attribute, $options = [] )$model yii\base\Model The data model. $attribute string The attribute name or expression. See yii\helpers\Html::getAttributeName() for the format about att

widgets\ActiveForm errorSummary()

errorSummary() public method Generates a summary of the validation errors. If there is no validation error, an empty error summary markup will still be generated, but it will be hidden. See also $errorSummaryCssClass. public string errorSummary ( $models, $options = [] )$models yii\base\Model|yii\base\Model[] The model(s) associated with this form. $options array The tag options in terms of name-value pairs. The following options are specially handled: header: string, the header HTML

widgets\ActiveForm endField()

endField() public method Ends a form field. This method will return the closing tag of an active form field started by beginField(). public string endField ( )return string The closing tag of the form field. throws yii\base\InvalidCallException if this method is called without a prior beginField() call.

widgets\ActiveForm beginField()

beginField() public method Begins a form field. This method will create a new form field and returns its opening tag. You should call endField() afterwards. See also: endField() field() public string beginField ( $model, $attribute, $options = [] )$model yii\base\Model The data model. $attribute string The attribute name or expression. See yii\helpers\Html::getAttributeName() for the format about attribute expression. $options array The additional configurations for the field object.

widgets\ActiveForm $validationUrl

$validationUrl public property The URL for performing AJAX-based validation. This property will be processed by yii\helpers\Url::to(). Please refer to yii\helpers\Url::to() for more details on how to configure this property. If this property is not set, it will take the value of the form's action attribute. public array|string $validationUrl = null

widgets\ActiveForm $validationDelay

$validationDelay public property Number of milliseconds that the validation should be delayed when the user types in the field and $validateOnType is set true. If yii\widgets\ActiveField::$validationDelay is set, its value will take precedence for that input field. public integer $validationDelay = 500

widgets\ActiveForm $validatingCssClass

$validatingCssClass public property The CSS class that is added to a field container when the associated attribute is being validated. public string $validatingCssClass = 'validating'

widgets\ActiveForm $validateOnType

$validateOnType public property Whether to perform validation while the user is typing in an input field. If yii\widgets\ActiveField::$validateOnType is set, its value will take precedence for that input field. See also $validationDelay. public boolean $validateOnType = false