PHP 클래스 macgyer\yii2materializecss\widgets\form\ActiveForm

또한 보기: http://www.yiiframework.com/doc-2.0/yii-widgets-activeform.html
저자: Christoph Erdmann ([email protected])
상속: extends yii\widgets\ActiveForm
파일 보기 프로젝트 열기: macgyer/yii2-materializecss

공개 프로퍼티들

프로퍼티 타입 설명
$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.

공개 메소드들

메소드 설명
field ( Model $model, string $attribute, array $options = [] ) : ActiveField Generates a form field.
init ( ) Initialize the widget.

메소드 상세

field() 공개 메소드

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).
리턴 ActiveField the created ActiveField object

init() 공개 메소드

Initialize the widget.
public init ( )

프로퍼티 상세

$errorCssClass 공개적으로 프로퍼티

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

$fieldClass 공개적으로 프로퍼티

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

$successCssClass 공개적으로 프로퍼티

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