Merge pull request #3961 from Theill11/patch-1

Typo in guide
This commit is contained in:
Paul Klimov
2014-06-19 10:54:37 +03:00

View File

@ -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'])) { if (!in_array($this->$attribute, ['USA', 'Web'])) {
$this->addError($attribute, 'The country must be either "USA" or "Web".'); $this->addError($attribute, 'The country must be either "USA" or "Web".');