I have the following code in my active record class:
but the error messages do not appear as I have entered them ?
I have the following code in my active record class:
but the error messages do not appear as I have entered them ?
Which error message does not appear as expected?
none of the redefined message shows. this is what i have on beforeValidate, but it seem correct to me.
For 'length' validator, you may need to set 'tooLong' and 'tooShort' messages as well.
For 'numerical', set 'tooBig' and 'tooSmall' messages.
Please check the API manual for CStringValidator and CNumberValidator.
10x qiang , “tooSmall” and “tooShort” did the trick