Skip to content

Commit

Permalink
Fix AD Hoc example syntax (yiisoft#16491) [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
jk2K authored and samdark committed Jul 6, 2018
1 parent bff974c commit 1cfd5e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/input-validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ which supports declaring both attributes and rules on the fly. Its usage is like
```php
public function actionSearch($name, $email)
{
$model = DynamicModel::validateData(['name' => $name, 'email' => $email]), [
$model = DynamicModel::validateData(['name' => $name, 'email' => $email], [
[['name', 'email'], 'string', 'max' => 128],
['email', 'email'],
]);
Expand Down

0 comments on commit 1cfd5e6

Please sign in to comment.