One person told me that the validate () method only verifies data on the client side, that it is necessary to prescribe separate checks for validation on the server side. For some reason I thought that validate () checks both on the server and on the client side. Who is right?

    1 answer 1

    Validation takes place both on the client side and on the server.
    In detail, all painted in the official documentation: here

    I quote:

    If you want to disable the client-side scan completely, you can set the [[yii \ widgets \ ActiveForm :: enableClientValidation]] property to false. You can also disable client-side checking of individual input fields by setting them using the [[yii \ widgets \ ActiveField :: enableClientValidation]] property by setting false.