Commit 45e4d47d by Alexander Makarov

Merge pull request #4705 from disem/dynamic-model-typo-fix

Dynamic model typo fix
parents 3a4b32c4 7d64e93c
...@@ -18,7 +18,7 @@ use yii\validators\Validator; ...@@ -18,7 +18,7 @@ use yii\validators\Validator;
* public function actionSearch($name, $email) * public function actionSearch($name, $email)
* { * {
* $model = DynamicModel::validateData(compact('name', 'email'), [ * $model = DynamicModel::validateData(compact('name', 'email'), [
* [['name', 'email'], 'string', 'max' => 128]], * [['name', 'email'], 'string', 'max' => 128],
* ['email', 'email'], * ['email', 'email'],
* ]); * ]);
* if ($model->hasErrors()) { * if ($model->hasErrors()) {
......
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