Hi my friends
I created a form with a lot of input type like integer, string, and date by specific format
I also make rules for those input (Model) and I enabled ‘enableClientValidation’ => true, on form (View) to check the user values before submits the form.
I check on yii framework folder
The file like CNumberValidator.php implements clientValidateAttribute method
but I couldn’t found clientValidateAttribute method in CDateValidator.php file.
I guess it’s not implemented just because it is very cumbersome.
As you see in the source of it, CDateValidator.validateAttribute uses CDataTimeParser.parse to validate the attribute.
And CDateTimeParser.parse is quite a long and heavy method with a lot of branches.
Thanks for the response
I know that but it would be useful
Anyway I change the rule type ‘date’ to ‘match’ , using another validator
with this one
Everything works ok