Commit b8cbc3a8 by Johnny Theill

Typo in guide

Fixed typo in validation guide
parent 5f852465
...@@ -315,7 +315,7 @@ class MyForm extends Model ...@@ -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".');
......
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