Commit e94d7e29 by Paul Klimov

Merge pull request #3961 from Theill11/patch-1

Typo in guide
parents 5f852465 b8cbc3a8
......@@ -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