PHP Class macgyer\yii2materializecss\widgets\form\ActiveForm

See also: http://www.yiiframework.com/doc-2.0/yii-widgets-activeform.html
Author: Christoph Erdmann ([email protected])
Inheritance: extends yii\widgets\ActiveForm
Datei anzeigen Open project: macgyer/yii2-materializecss

Public Properties

Property Type Description
$errorCssClass the CSS class that is added to a field container when the associated attribute has validation error.
$fieldClass the default field class name when calling ActiveForm::field to create a new field.
$successCssClass the CSS class that is added to a field container when the associated attribute is successfully validated.

Public Methods

Method Description
field ( Model $model, string $attribute, array $options = [] ) : ActiveField Generates a form field.
init ( ) Initialize the widget.

Method Details

field() public method

Generates a form field.
public field ( Model $model, string $attribute, array $options = [] ) : ActiveField
$model yii\base\Model the data model.
$attribute string the attribute name or expression. See [yii\helpers\Html::getAttributeName()](http://www.yiiframework.com/doc-2.0/yii-helpers-basehtml.html#getAttributeName()-detail) for the format about attribute expression.
$options array the additional configurations for the field object. These are properties of [yii\widgets\ActiveField](http://www.yiiframework.com/doc-2.0/yii-widgets-activefield.html) or a subclass, depending on the value of [$fieldClass](http://www.yiiframework.com/doc-2.0/yii-widgets-activeform.html#$fieldClass-detail).
return ActiveField the created ActiveField object

init() public method

Initialize the widget.
public init ( )

Property Details

$errorCssClass public_oe property

the CSS class that is added to a field container when the associated attribute has validation error.
public $errorCssClass

$fieldClass public_oe property

the default field class name when calling ActiveForm::field to create a new field.
See also: http://www.yiiframework.com/doc-2.0/yii-widgets-activeform.html#$fieldConfig-detail
public $fieldClass

$successCssClass public_oe property

the CSS class that is added to a field container when the associated attribute is successfully validated.
public $successCssClass