mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 04:37:42 +08:00
Merge pull request #4705 from disem/dynamic-model-typo-fix
Dynamic model typo fix
This commit is contained in:
@ -18,7 +18,7 @@ use yii\validators\Validator;
|
||||
* public function actionSearch($name, $email)
|
||||
* {
|
||||
* $model = DynamicModel::validateData(compact('name', 'email'), [
|
||||
* [['name', 'email'], 'string', 'max' => 128]],
|
||||
* [['name', 'email'], 'string', 'max' => 128],
|
||||
* ['email', 'email'],
|
||||
* ]);
|
||||
* if ($model->hasErrors()) {
|
||||
|
||||
Reference in New Issue
Block a user