Maybe you have a special case where you have an array on which you would like to validate all of its elements.

Then my extension is useful: array-validator

Please tell what you think about it (:

Hi pligor,

I tried using this extension in my project, but its giving me this erro

include(CHtmlEx.php) [<a href=‘function.include’>function.include</a>]: failed to open stream: No such file or directory …

Can u please help me solve this.

my code is




    'validatorClass' => 'CRangeValidator',

    'params' => array(

        'required' => true,

       // 'range' => Model::getRange(),


    'separateParams' => false,

    'allowEmpty' => false,



Ok array validator is now in a new version. Try it out :)