Commit 2b8cd18a by Klimov Paul

Merge branch 'master' of github.com:yiisoft/yii2

parents bb1a964c e94d7e29
......@@ -315,7 +315,7 @@ class MyForm extends Model
];
}
public function validateType($attribute, $params)
public function validateCountry($attribute, $params)
{
if (!in_array($this->$attribute, ['USA', 'Web'])) {
$this->addError($attribute, 'The country must be either "USA" or "Web".');
......
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