public isFieldError ( string $field ) : boolean | ||
$field | string | This should be "modelname.fieldname" |
return | boolean | If there are errors this method returns true, else false. |
public function isFieldError($field)
{
return $this->_getContext()->hasError($field);
}