I know the protocol about the structure of my new validator.
My question is: where have I to put my new validator?
How can I say to Yii that my new validator have to be in the build-in validator?
Thank you very much
I know the protocol about the structure of my new validator.
My question is: where have I to put my new validator?
How can I say to Yii that my new validator have to be in the build-in validator?
Thank you very much
If your validator is a class, you may put it in protected/components (or other places if you like), and then use it like the following:
array('attribute list', 'ValidatorClassName')
Quote
array('attribute list', 'ValidatorClassName')
Yes my validator is a class.
You mean, when i use the validator in the role?
Yes, in the rules.