add custom error message to a model in Yii
{Code}
$model->addError('string:attribute', 'string error message) public void addError(string $attribute, string $error)
{Boy Said}
You can also get all error messages in a model by this way.
{Code}
$model->addError('string:attribute', 'string error message) public void addError(string $attribute, string $error)
{Boy Said}
You can also get all error messages in a model by this way.
YiiLib Foucs on: Pro Web Dev Tutorial and Pro Web Dev Service
Copyright © 2011 - 2024 YiiLib.com(YiiBlog.info) - Designed & Developed by Boy.Lee
Leave Comment