Commit 3800872b by Vasiliy Baukin Committed by Qiang Xue

Update input-validation.md

You are validating the data, not users.
parent ba68986d
Validating Input
================
As a rule of thumb, you should never trust the data received from end users and should always validate them
before putting them to good use.
As a rule of thumb, you should never trust the data received from end users and should always validate it
before putting it to good use.
Given a [model](structure-models.md) populated with user inputs, you can validate the inputs by calling the
[[yii\base\Model::validate()]] method. The method will return a boolean value indicating whether the validation
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment