Answer the question
In order to leave comments, you need to log in
Is it necessary to always bind user input in Yii2?
Given: some user input (let it be $something
from $_POST, minimally cleared with strip tags, after - htmlspecialchars) We
search using Active Record:
Model::find()->where(['something' => $something])->all();
Answer the question
In order to leave comments, you need to log in
Read more:
https://www.yiiframework.com/doc/guide/2.0/en/db-q...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question