Welcome Guest, Not a member yet? Register   Sign In
Calling setRules multiple times possible?
#1

(This post was last modified: 09-06-2022, 05:30 AM by groovebird.)

Hi,

i want to add an array of additional validation rules to en existing array of rules.

$validation->setRules($firstArrayWithRules);
$validation->setRules($secondArraywithRules);

If i call this in the controller only the second array with rules will be executed and the first rules are ignored.

Is there something like addRules, where i can add additional rules to the rules set by setRules method?
Reply


Messages In This Thread
Calling setRules multiple times possible? - by groovebird - 09-06-2022, 05:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB