required-compare-true-validator Validates that the specified attribute does not have null or empty value,when the compare value is true.

  1. Documentation
  2. Change Log

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.
1 0
2 followers
447 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Validation
Tags:
Developed by: sharehua
Created on: Jun 5, 2009
Last updated: 14 years ago

Downloads

show all