Where these methods of CModel class are used?
addError()
addErrors()
clearErrors()
getError()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
Does anyone know?
Where these methods of CModel class are used?
addError()
addErrors()
clearErrors()
getError()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
Does anyone know?
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
these are part of PHP ArrayObject interface (http://www.php.net/manual/en/class.arrayobject.php)
They allow to access object as array.
addError()
addErrors()
clearErrors()
getError()
are used by validation (to store vaidation errors and to display them on form view for example)
but in all validator classes, there is a message property to do that.
Message holds the error message. Errors are actual validation errors.
I’m sorry! but I still do not understand! what is the difference between this and that? Both hold the error message.