widgets\ActiveForm validateMultiple()

validateMultiple() public static method Validates an array of model instances and returns an error message array indexed by the attribute IDs. This is a helper method that simplifies the way of writing AJAX validation code for tabular input. For example, you may use the following code in a controller action to respond to an AJAX validation request: // ... load $models ... if (Yii::$app->request->isAjax) { Yii::$app->response->format = Response::FORMAT_JSON; return Active

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 getClientOptions()

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

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 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 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 $validateOnSubmit

$validateOnSubmit public property Whether to perform validation when the form is submitted. public boolean $validateOnSubmit = true

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'