How to customize the error message of a validation rule. and also how we add validation rules for dynamic field id and dynamic class. ?
How to customize the error message of a validation rule. and also how we add validation rules for dynamic field id and dynamic class. ?
you can ref this link for creating custom validation rule in model.
http://www.yiiframework.com/wiki/168/create-your-own-validation-rule/
thanx for the quick reply.