O
O
oleg2015-07-06 09:26:57
Yii
oleg, 2015-07-06 09:26:57

How to disable yii2 form validator?

Good afternoon!
How to disable yii2 form validator?
there is a form model my_object
InputFactory::input($model, 'my_object', 3),
Here it is tormented by the validator

public function rules()
    {
        return [
            [['floor_id', 'name', 'state', 'my_object'], 'required'],
            [['floor_id', 'name', 'state', 'my_object', 'sort', 'state_id'], 'integer'],
            [['rock', 'square', 'listen', 'balcony_square'], 'number'],
            [['map', 'note'], 'string']
        ];
    }

He scolds the rule for filling out the form, how to correct the rule or just do it off for this form?
I am a deep newbie in yii2. I beg your pardon.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question