This extension is validates that the specified attribute does not have null or empty value,when compares the specified attribute value with another value and validates if they are equal.
protected/components
hint: components must be in import path.See the following code example:
at rules function of model.php,put the validate code. array('attributeA','SCompareRequiredValidator','compareAttribute'=>'attributeB','compareValue'=>'someValue'),
Total 1 comment
Thanks!
Leave a comment
Please login to leave your comment.