hi,
this may sound like a strange request but would it be possible to replace built-in validator classes, for example, by giving access to CValidator::builtInValidators array at initialisation time ? This way, it would be possible to replace :
'required'=>'CRequiredValidator'
by
'required'=>'CMyOwnRequiredValidator'
Why ? For instance, to add/modify validation methods without having to modify models rules. The CMyOwnRequiredValidator class could for instance not trim values to validate … or things like that.
In general, if I want to very slightly modify validation algorithm of a built-in validator, I could just write my own class derived from the Yii class, and tells Yii to use my class instead of the core one…
…or maybe there’s already a way to achieve this and I missed it