Yii 1.1: required-compare-true-validator

Validates that the specified attribute does not have null or empty value,when the compare value is true.
2 followers

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.

Total 1 comment

#4060 report it
waterloomatt at 2011/06/02 03:44am
Nice & Clean

Thanks!

Leave a comment

Please to leave your comment.

Create extension
  • Yii Version: 1.1
  • License: New BSD License
  • Developed by: sharehua
  • Category: Validation
  • Votes: +1
  • Downloaded: 397 times
  • Created on: Jun 4, 2009
  • Last updated: Dec 26, 2009