You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validating data from form post with a rule set by name via controller, e.g:
$this->validate('account')
Throws this error:
Argument 1 passed to CodeIgniter\Model::cleanValidationRules() must be of the type array, string given, framework\system\Model.php on line 1259
This worked fine since alpha3... not working in alpha5.
The text was updated successfully, but these errors were encountered:
Actually after a bit of further testing and digging- it does not appear to matter if the rule set is a name or array... the error stems from this line in the model:
After even further digging- it appears this works:
protected $validationRules = ['account'];
From docs:
Contains either an array of validation rules as described in How to save your rules or a string containing the name of a validation group, as described in the same section. Described in more detail below.
I guess the array is new but it still states that a string will work?
Validating data from form post with a rule set by name via controller, e.g:
$this->validate('account')
Throws this error:
Argument 1 passed to CodeIgniter\Model::cleanValidationRules() must be of the type array, string given, framework\system\Model.php on line 1259
This worked fine since alpha3... not working in alpha5.
The text was updated successfully, but these errors were encountered: