Answer the question
In order to leave comments, you need to log in
How to display just a header error message?
Good afternoon,
I can’t find how to display the header error message using yii2/. (but don't summarize)
For example - There are some errors in the form..
I try like this$form->error($model, 'text_error');
Answer the question
In order to leave comments, you need to log in
Methods getFirstError, getFirstErrors, hasErrors
ajax validation and validation on the client:
$('#contact-form').on('beforeSubmit', function (e) {
if (!confirm("Everything is correct. Submit?")) {
return false;
}
return true;
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question