Commit 22777c88 by Paul Klimov

Merge pull request #3735 from Ryadnov/patch-2

fix typo
parents bb07aebe 4cfb8d64
...@@ -208,7 +208,7 @@ The typical usage of DynamicModel is as follows, ...@@ -208,7 +208,7 @@ The typical usage of DynamicModel is as follows,
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