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
I have empty validation rules array in the object parameters but I set it up in the beforeValidate method.
Because this method is not executed by the Plugin my array stays empty end therefore there is no validation JavaScript code in the page.
There is an easy fix, just run beforeValidate in the helper class:
I have empty validation rules array in the object parameters but I set it up in the beforeValidate method.
Because this method is not executed by the Plugin my array stays empty end therefore there is no validation JavaScript code in the page.
There is an easy fix, just run beforeValidate in the helper class:
Line: 47
$model = classRegistry::init($modelName);
$model->beforeValidate();
$arr=explode('.',$modelName);
The text was updated successfully, but these errors were encountered: