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.
Resources ¶
Documentation ¶
Requirements ¶
- Yii 1.0 or above
Installation ¶
- Extract the release file under
protected/components
hint: components must be in import path.Usage ¶
See the following code example:
at rules function of model.php,put the validate code.
array('attributeA','SCompareRequiredValidator','compareAttribute'=>'attributeB','compareValue'=>'someValue'),
Change Log ¶
June 4, 2009 ¶
- Initial release.
Nice & Clean
Thanks!
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.